i965/nir: enable lowering of texture gradient for cube maps
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 30 Nov 2016 08:44:20 +0000 (09:44 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 Dec 2016 09:32:46 +0000 (10:32 +0100)
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@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c

index 763e3ec4b6c2318bf968f96ce80bb91edc8c42b0..f6bcd452656caa835345055f91bb8273ad71c134 100644 (file)
@@ -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);