Skip to content

gallium/cso_context: remove cso_delete_xxx_shader helpers to fix the live cache

Marek Olšák requested to merge mareko/mesa:fix-live-cache into master

With the live shader cache, equivalent shaders can be backed by the same CSO. This breaks the logic that identifies whether the shader being deleted is bound.

For example, having shaders A and B, you can bind shader A and delete shader B. Deleting shader B will unbind shader A if they are equivalent.

Pierre-Eric figured out the root cause for this issue.

Fixes: 0db74f47 - radeonsi: use the live shader cache Closes: #2596 (closed)

Merge request reports