diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-11 07:51:30 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-22 12:26:43 -0700 |
commit | 664dc89a1baede86da193a24d27d6314fa0f662e (patch) | |
tree | f1fff379fe5e2e8aec43f42d65384ea3ed0dbd75 /src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | |
parent | 2a1cc94d27c80929d91e38b4843333a5408d563e (diff) | |
download | external_mesa3d-664dc89a1baede86da193a24d27d6314fa0f662e.zip external_mesa3d-664dc89a1baede86da193a24d27d6314fa0f662e.tar.gz external_mesa3d-664dc89a1baede86da193a24d27d6314fa0f662e.tar.bz2 |
i965/gen7,8: Set SURFACE_IS_ARRAY for all non-3D texture types
There's no real reason why we shouldn't set this bit. It does affect how
the sampler operates a bit but since you can have a 2D non-array view of a
2D_ARRAY texture that distinction is very weak. Also, this is what ISL
will do and we would like this change to be isolated from using ISL.
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 |
1 files changed, 1 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 60589bc..2a7ae31 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -295,7 +295,7 @@ gen7_emit_texture_surface_state(struct brw_context *brw, if (mt->halign == 8) surf[0] |= GEN7_SURFACE_HALIGN_8; - if (_mesa_is_array_texture(target) || target == GL_TEXTURE_CUBE_MAP) + if (mt->target != GL_TEXTURE_3D) surf[0] |= GEN7_SURFACE_IS_ARRAY; if (mt->array_layout == ALL_SLICES_AT_EACH_LOD) |