radeonsi: don't lower constant arrays to uniforms in GLSL IR
This re-enables the change made in2f5783bc2bwhich was incorrectly disabled by3e1dd99adc. For radeonsi, we will prefer the NIR pass as it'll generate better code (some index calculation and a single load vs. a load, then index calculation, then another load) and oftentimes NIR optimization can kick in and make all the access indices constant. Fixes:3e1dd99adc("radeonsi: Remove a bunch of default handling of pipe caps.") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4474>
This commit is contained in:
committed by
Marge Bot
parent
c682ea598f
commit
1f649ff107
@@ -218,6 +218,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
||||
return sscreen->info.has_sparse_vm_mappings ? RADEON_SPARSE_PAGE_SIZE : 0;
|
||||
|
||||
case PIPE_CAP_UMA:
|
||||
case PIPE_CAP_PREFER_IMM_ARRAYS_AS_CONSTBUF:
|
||||
return 0;
|
||||
|
||||
case PIPE_CAP_FENCE_SIGNAL:
|
||||
|
||||
Reference in New Issue
Block a user