Skip to content

svga: ignore shader resource if not used by shaders

Charmaine Lee requested to merge charmainel/mesa:fix-backed-shader-resource into main

What does this MR do and why?

svga: ignore sampler view resource if not used by shaders

Currently bound sampler view resources are relevant only if the currently bound shaders also access them. So when checking for shader resource collision, we only need to check those shader resources that are actively used by the shaders.

This fixes a regression with manhattan when only the active state changes are sent to the driver and a no longer relevant shader resource is included in the shader resource collision check. This causes a backing resource to be unnecessarily created and the content never propagated to the original resource.

/cc @bhenden

Merge request reports