[Mesa-dev] [PATCH 024/133] i965/fs_nir: Make the sampler register always unsigned
Jason Ekstrand
jason at jlekstrand.net
Mon Dec 15 22:04:34 PST 2014
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index ac79064..aad5018 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -1543,7 +1543,7 @@ void
fs_visitor::nir_emit_texture(nir_tex_instr *instr)
{
brw_wm_prog_key *key = (brw_wm_prog_key*) this->key;
- int sampler = instr->sampler_index;
+ unsigned sampler = instr->sampler_index;
/* FINISHME: We're failing to recompile our programs when the sampler is
* updated. This only matters for the texture rectangle scale parameters
@@ -1585,7 +1585,7 @@ fs_visitor::nir_emit_texture(nir_tex_instr *instr)
lod = src;
break;
case nir_tex_src_ms_index:
- sample_index = src;
+ sample_index = retype(src, BRW_REGISTER_TYPE_UD);
break;
case nir_tex_src_offset:
offset = src;
--
2.2.0
More information about the mesa-dev
mailing list