mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir: track lowered image intrinsics to globals
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32676>
This commit is contained in:
parent
38fa9e144c
commit
23e14ac41e
2 changed files with 10 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ lower(nir_builder *b, nir_intrinsic_instr *intr, void *data)
|
|||
.atomic_op = atomic_op);
|
||||
}
|
||||
|
||||
b->shader->info.use_lowered_image_to_global = true;
|
||||
|
||||
/* Replace the image atomic with the global atomic. Remove the image
|
||||
* explicitly because it has side effects so is not DCE'd.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -253,6 +253,14 @@ typedef struct shader_info {
|
|||
/* Use ACO instead of LLVM on AMD. */
|
||||
bool use_aco_amd:1;
|
||||
|
||||
/**
|
||||
* Whether image intrinsics have been lowered to global intrinsics
|
||||
*
|
||||
* This is potentially useful on some implementation that need to know that
|
||||
* an image barrier needs to include global barriers due to the lowering.
|
||||
*/
|
||||
bool use_lowered_image_to_global:1;
|
||||
|
||||
/**
|
||||
* Set if this shader uses legacy (DX9 or ARB assembly) math rules.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue