[Mesa-dev] [PATCH] i965: don't fail to shift height images for levels.
Dave Airlie
airlied at gmail.com
Fri May 27 04:57:04 UTC 2016
From: Dave Airlie <airlied at redhat.com>
This fixes one subtest of:
GL44-CTS.shader_image_size.advanced-nonMS-fs-int
I've no idea why this wouldn't be scaled up here,
and I've no idea what else will break, but I might
as well open for discussion.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/drivers/dri/i965/intel_tex_image.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index 9cc426c..58cecd3 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_image.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
@@ -49,8 +49,7 @@ intel_miptree_create_for_teximage(struct brw_context *brw,
/* Figure out image dimensions at start level. */
for (i = intelImage->base.Base.Level; i > 0; i--) {
width <<= 1;
- if (height != 1)
- height <<= 1;
+ height <<= 1;
if (intelObj->base.Target == GL_TEXTURE_3D)
depth <<= 1;
}
--
2.5.5
More information about the mesa-dev
mailing list