[Mesa-dev] [PATCH] nir/lower_io: Add UBOs and SSBOs to get_io_offset_src
Kenneth Graunke
kenneth at whitecape.org
Thu Apr 14 21:12:20 UTC 2016
On Thursday, April 14, 2016 10:31:44 AM PDT Jason Ekstrand wrote:
> ---
> src/compiler/nir/nir_lower_io.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/
nir_lower_io.c
> index 8b660c1..238b86d 100644
> --- a/src/compiler/nir/nir_lower_io.c
> +++ b/src/compiler/nir/nir_lower_io.c
> @@ -426,10 +426,13 @@ nir_get_io_offset_src(nir_intrinsic_instr *instr)
> case nir_intrinsic_load_output:
> case nir_intrinsic_load_uniform:
> return &instr->src[0];
> + case nir_intrinsic_load_ubo:
> + case nir_intrinsic_load_ssbo:
> case nir_intrinsic_load_per_vertex_input:
> case nir_intrinsic_load_per_vertex_output:
> case nir_intrinsic_store_output:
> return &instr->src[1];
> + case nir_intrinsic_store_ssbo:
> case nir_intrinsic_store_per_vertex_output:
> return &instr->src[2];
> default:
>
Seems fine, this probably isn't useful for nir_lower_io but I see you're
using it in anv_nir_apply_dynamic_offsets.c.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160414/2b28d540/attachment.sig>
More information about the mesa-dev
mailing list