summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_shader.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-03-27 17:34:10 -0500
committerKarol Herbst <[email protected]>2019-04-14 22:25:56 +0200
commit6b1c398bcbf1dd1a11db8895e5d642ac3267bdad (patch)
tree168bd53fdc8eefd05f58cfd35c798356986e7a72 /src/intel/compiler/brw_shader.h
parent2a36699ed36f753cccaee211a0da4f1b162ff281 (diff)
intel/nir: Take a nir_tex_instr and src index in brw_texture_offset
This makes things a bit simpler and it's also more robust because it no longer has a hard dependency on the offset being a 32-bit value.
Diffstat (limited to 'src/intel/compiler/brw_shader.h')
-rw-r--r--src/intel/compiler/brw_shader.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_shader.h b/src/intel/compiler/brw_shader.h
index 45ff19832b7..61b5cd6fad3 100644
--- a/src/intel/compiler/brw_shader.h
+++ b/src/intel/compiler/brw_shader.h
@@ -243,8 +243,7 @@ public:
virtual void invalidate_live_intervals() = 0;
};
-bool brw_texture_offset(int *offsets,
- unsigned num_components,
+bool brw_texture_offset(const nir_tex_instr *tex, unsigned src,
uint32_t *offset_bits);
#else