mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
radeonsi: fix global access ACO compile fail when OpenCL
sel->stage is MESA_SHADER_COMPUTE for OpenCL shaders, while
nir->info.stage is MESA_SHADER_KERNEL.
Fixes: 955ae53efd radeonsi: fix OpenCL piglit tests fails when using ACO
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32787>
This commit is contained in:
parent
f20a748b1b
commit
8dbec20a56
1 changed files with 1 additions and 1 deletions
|
|
@ -2620,7 +2620,7 @@ static struct nir_shader *si_get_nir_shader(struct si_shader *shader, struct si_
|
|||
NIR_PASS(progress, nir, ac_nir_lower_mem_access_bit_sizes,
|
||||
sel->screen->info.gfx_level, !nir->info.use_aco_amd);
|
||||
|
||||
if (sel->stage == MESA_SHADER_KERNEL) {
|
||||
if (nir->info.stage == MESA_SHADER_KERNEL) {
|
||||
NIR_PASS(progress, nir, ac_nir_lower_global_access);
|
||||
|
||||
if (nir->info.bit_sizes_int & (8 | 16)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue