mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 21:20:25 +01:00
nv50/ir/nir: fix smem size for GL
Originally I fixed the case where the nir itself has a shared mem size of 0, but the frontend (e.g. clover) set it to some other value. But st/mesa sets the shared mem size on the state object as well and we end up actually doubling the value in the driver as we set smemSize to the value from the state object before calling into the compiler. So just max the value instead. Fixes the compute_shader.shared-max CTS test. Fixes:dc667b1f19("nv50/ir/nir: fix smem size") Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11047> (cherry picked from commitff55412f40)
This commit is contained in:
parent
4be9824dc9
commit
8e00c1956d
2 changed files with 2 additions and 2 deletions
|
|
@ -697,7 +697,7 @@
|
|||
"description": "nv50/ir/nir: fix smem size for GL",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "dc667b1f192d33d073832a50b0e920734f9fb8ef"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1292,7 +1292,7 @@ Converter::parseNIR()
|
|||
info->prop.cp.numThreads[0] = nir->info.workgroup_size[0];
|
||||
info->prop.cp.numThreads[1] = nir->info.workgroup_size[1];
|
||||
info->prop.cp.numThreads[2] = nir->info.workgroup_size[2];
|
||||
info_out->bin.smemSize += nir->info.shared_size;
|
||||
info_out->bin.smemSize = std::max(info_out->bin.smemSize, nir->info.shared_size);
|
||||
break;
|
||||
case Program::TYPE_FRAGMENT:
|
||||
info_out->prop.fp.earlyFragTests = nir->info.fs.early_fragment_tests;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue