diff options
author | Kenneth Graunke <[email protected]> | 2011-12-07 12:34:28 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-12-07 14:51:12 -0800 |
commit | 4273943a07bb577f91972b64232d394c1197c564 (patch) | |
tree | dcb57dd638376b7cd3ec286f3add1299d7578fb5 | |
parent | d464a21e2d796e396e7e4c0cfe971b41003e2d2a (diff) |
i965: Set Ivybridge's is_array SURFACE_STATE bit.
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.
Not a candidate for 7.11 because EXT_texture_array wasn't supported.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | 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 d20bdb5bfe3..0defa676bd5 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) |