Skip to content
Snippets Groups Projects
Commit ff55412f authored by Karol Herbst's avatar Karol Herbst :crab:
Browse files

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: dc667b1f ("nv50/ir/nir: fix smem size")
Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Part-of: <!11047>
parent d6dd13a6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment