Mesa (master): i965/nir: enable lowering of texture gradient for cube maps
Iago Toral Quiroga
itoral at kemper.freedesktop.org
Tue Dec 13 10:09:54 UTC 2016
Module: Mesa
Branch: master
Commit: f90da64fc65d8da99a5a5a140be7b64c8cf5ee6a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f90da64fc65d8da99a5a5a140be7b64c8cf5ee6a
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Wed Nov 30 09:44:20 2016 +0100
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 <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_nir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 763e3ec..f6bcd45 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);
More information about the mesa-commit
mailing list