diff options
author | Rob Clark <[email protected]> | 2017-11-05 13:53:50 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-11-10 08:57:33 -0500 |
commit | ef4c42fc3ae468d6cb42fbb8564831549a3bdebe (patch) | |
tree | 392c4837e384d5849959b6ac936e8087c6763a48 /src/compiler | |
parent | cd6f79a71d75d5d756176a03f04c4442c0ef9e7f (diff) |
nir: handle get_buffer_size in nir_lower_atomics_to_ssbo
Overlooked initially, be we need to remap the SSBO index for this as
well.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_lower_atomics_to_ssbo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_atomics_to_ssbo.c b/src/compiler/nir/nir_lower_atomics_to_ssbo.c index 371eb0b9d15..934ae81d750 100644 --- a/src/compiler/nir/nir_lower_atomics_to_ssbo.c +++ b/src/compiler/nir/nir_lower_atomics_to_ssbo.c @@ -59,6 +59,7 @@ lower_instr(nir_intrinsic_instr *instr, unsigned ssbo_offset, nir_builder *b) case nir_intrinsic_ssbo_atomic_comp_swap: case nir_intrinsic_store_ssbo: case nir_intrinsic_load_ssbo: + case nir_intrinsic_get_buffer_size: /* easy case, keep same opcode and just remap SSBO buffer index: */ op = instr->intrinsic; idx_src = (op == nir_intrinsic_store_ssbo) ? 1 : 0; |