anv: Avoid emitting UBO surface states that won't be used
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 29 Oct 2019 21:10:49 +0000 (16:10 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 30 Oct 2019 16:05:57 +0000 (16:05 +0000)
commitbeca63c6c07f7263a56a3517ba0fec6fe6335325
treeb35bf669f0df0127121ee037b58c5eab2c3804a5
parent24c0545b2d5d79132ee48643886cd3eb285beb6f
anv: Avoid emitting UBO surface states that won't be used

This shaves around 4-5% off of a CPU-limited example running with the
Dawn WebGPU implementation.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/genX_cmd_buffer.c