• Karol Herbst's avatar
    nv50/ir/nir: fix smem size for GL · cfa01331
    Karol Herbst authored
    Originally I tried to fix where the nir itself has a shared mem size of 0,
    but the frontend (here clover) set it to some value. But st/mesa presets
    it on the state object and we actually double the value in the end.
    Just use max the value and use the biggest one.
    Fixes the compute_shader.shared-max CTS test.
    Fixes: dc667b1f
     ("nv50/ir/nir: fix smem size")
    Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
nv50_ir_from_nir.cpp 105 KB