[Mesa-dev] [PATCH] i965: Set Ivybridge's is_array SURFACE_STATE bit.
Kenneth Graunke
kenneth at whitecape.org
Wed Dec 7 12:34:28 PST 2011
Fixes piglit tests fbo-array, fbo-depth-array, fbo-generatemipmap-array,
and array-texture, as well as the array variants of my new textureSize
and texelFetch tests.
NOTE: This is a candidate for the 7.11 branch.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
index d20bdb5..0defa67 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -89,10 +89,11 @@ gen7_update_texture_surface(struct gl_context *ctx, GLuint unit)
surf->ss0.cube_neg_z = 1;
}
+ surf->ss0.is_array = depth > 1 && tObj->Target != GL_TEXTURE_3D;
+
gen7_set_surface_tiling(surf, intelObj->mt->region->tiling);
/* ss0 remaining fields:
- * - is_array
* - vertical_alignment
* - horizontal_alignment
* - vert_line_stride (exists on gen6 but we ignore it)
--
1.7.7.1
More information about the mesa-dev
mailing list