Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89580
---
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
index 5a1d494..fa3f187 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
@@ -1421,6 +1421,8 @@ vec4_visitor::nir_emit_texture(nir_tex_instr *instr)
const glsl_type *coord_type = NULL;
src_reg shadow_comparitor;
int shadow_compare = 0;
+ bool has_nonconstant_offset = false;
+ src_reg offset_value;
src_reg lod, lod2;
/* Load the texture operation sources */
@@ -1480,7 +1482,8 @@ vec4_visitor::nir_emit_texture(nir_tex_instr *instr)
break;
case nir_tex_src_offset:
- /* @TODO: not yet implemented */
+ offset_value = retype(src, BRW_REGISTER_TYPE_D);
+ has_nonconstant_offset = true;
break;
case nir_tex_src_sampler_offset:
--
2.1.4
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev