mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
jay: load_simd_width_intel
dEQP-GLES31.functional.shaders.arrays_of_arrays.es31.array_access.dynamic_expression_access_fragment Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40960>
This commit is contained in:
parent
4eb838eb48
commit
8afcbbe77d
1 changed files with 7 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "jay_private.h"
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "nir_intrinsics.h"
|
||||
|
||||
/*
|
||||
* Jay-to-NIR relies on a careful indexing of defs: every 32-bit word has
|
||||
|
|
@ -100,6 +101,12 @@ jay_nir_lower_simd(nir_builder *b, nir_intrinsic_instr *intr, void *simd_)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* Just a constant */
|
||||
if (intr->intrinsic == nir_intrinsic_load_simd_width_intel) {
|
||||
nir_def_replace(&intr->def, nir_imm_int(b, *simd_width));
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Note: we don't treat read_invocation specially because there's little
|
||||
* benefit but doing so would require expensive uniformizing in some cases.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue