[Mesa-dev] [PATCH 66/78] i965/nir/vec4: Implement nir_tex_src_ddx and nir_tex_src_ddy tex sources
Eduardo Lima Mitev
elima at igalia.com
Fri Jun 26 01:07:22 PDT 2015
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89580
---
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
index 0f54858..5a1d494 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
@@ -1421,7 +1421,7 @@ vec4_visitor::nir_emit_texture(nir_tex_instr *instr)
const glsl_type *coord_type = NULL;
src_reg shadow_comparitor;
int shadow_compare = 0;
- src_reg lod;
+ src_reg lod, lod2;
/* Load the texture operation sources */
for (unsigned i = 0; i < instr->num_srcs; i++) {
@@ -1452,11 +1452,11 @@ vec4_visitor::nir_emit_texture(nir_tex_instr *instr)
break;
case nir_tex_src_ddx:
- /* @TODO: not yet implemented */
+ lod = retype(src, BRW_REGISTER_TYPE_F);
break;
case nir_tex_src_ddy:
- /* @TODO: not yet implemented */
+ lod2 = retype(src, BRW_REGISTER_TYPE_F);
break;
case nir_tex_src_lod:
--
2.1.4
More information about the mesa-dev
mailing list