[Mesa-dev] [PATCH] nir: handle get_buffer_size in nir_lower_atomics_to_ssbo
Kenneth Graunke
kenneth at whitecape.org
Sun Nov 5 22:21:56 UTC 2017
On Sunday, November 5, 2017 11:17:06 AM PST Rob Clark wrote:
> Overlooked initially, be we need to remap the SSBO index for this as
> well.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
> src/compiler/nir/nir_lower_atomics_to_ssbo.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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;
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171105/2c8c0151/attachment.sig>
More information about the mesa-dev
mailing list