blob: af1d9907d02f8d3a477cccb4f6efb06bbfba3f0b [file] [log] [blame]
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 9de05e7..1c06ec8 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -123,12 +123,6 @@ llvmpipe_texture_layout(struct llvmpipe_screen *screen,
lpr->row_stride[level] = align(nblocksx * block_size, 16);
- /* if row_stride * height > LP_MAX_TEXTURE_SIZE */
- if (lpr->row_stride[level] > LP_MAX_TEXTURE_SIZE / nblocksy) {
- /* image too large */
- goto fail;
- }
-
lpr->img_stride[level] = lpr->row_stride[level] * nblocksy;
}
@@ -164,13 +158,6 @@ llvmpipe_texture_layout(struct llvmpipe_screen *screen,
}
}
- /* if img_stride * num_slices_faces > LP_MAX_TEXTURE_SIZE */
- if (lpr->img_stride[level] >
- LP_MAX_TEXTURE_SIZE / lpr->num_slices_faces[level]) {
- /* volume too large */
- goto fail;
- }
-
total_size += (uint64_t) lpr->num_slices_faces[level]
* (uint64_t) lpr->img_stride[level];
if (total_size > LP_MAX_TEXTURE_SIZE) {