mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
agx/fence_images: Use intrinsics_pass
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24847>
This commit is contained in:
parent
d42bb650b3
commit
d49ed63d07
1 changed files with 3 additions and 7 deletions
|
|
@ -10,14 +10,10 @@
|
|||
#include "nir_intrinsics.h"
|
||||
|
||||
static bool
|
||||
pass(struct nir_builder *b, nir_instr *instr, void *data)
|
||||
pass(struct nir_builder *b, nir_intrinsic_instr *intr, void *data)
|
||||
{
|
||||
if (instr->type != nir_instr_type_intrinsic)
|
||||
return false;
|
||||
b->cursor = nir_after_instr(&intr->instr);
|
||||
|
||||
b->cursor = nir_after_instr(instr);
|
||||
|
||||
nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
|
||||
switch (intr->intrinsic) {
|
||||
case nir_intrinsic_image_store:
|
||||
case nir_intrinsic_bindless_image_store:
|
||||
|
|
@ -39,6 +35,6 @@ pass(struct nir_builder *b, nir_instr *instr, void *data)
|
|||
bool
|
||||
agx_nir_fence_images(nir_shader *s)
|
||||
{
|
||||
return nir_shader_instructions_pass(
|
||||
return nir_shader_intrinsics_pass(
|
||||
s, pass, nir_metadata_block_index | nir_metadata_dominance, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue