summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2016-11-30 09:44:20 +0100
committerIago Toral Quiroga <[email protected]>2016-12-13 10:32:46 +0100
commitf90da64fc65d8da99a5a5a140be7b64c8cf5ee6a (patch)
treedb719f26915a17e4c4be5e3a9e4c39a8ca26932a /src/mesa
parenta8e740c3547b0209d04b505d95a79794db31ce0b (diff)
i965/nir: enable lowering of texture gradient for cube maps
This gets the lowering on the Vulkan driver too. Fixes Vulkan CTS cube map texture gradient tests in: dEQP-VK.glsl.texture_functions.texturegrad.* Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 763e3ec4b6c..f6bcd452656 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -467,6 +467,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir)
.lower_txp = ~0,
.lower_txf_offset = true,
.lower_rect_offset = true,
+ .lower_txd_cube_map = true,
};
OPT(nir_lower_tex, &tex_options);