diff options
author | Jason Ekstrand <[email protected]> | 2019-03-27 17:34:10 -0500 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-04-14 22:25:56 +0200 |
commit | 6b1c398bcbf1dd1a11db8895e5d642ac3267bdad (patch) | |
tree | 168bd53fdc8eefd05f58cfd35c798356986e7a72 /src/intel/compiler/brw_shader.h | |
parent | 2a36699ed36f753cccaee211a0da4f1b162ff281 (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.h | 3 |
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 |