OSDN Git Service

radv: avoid PS partial flushes when viewports/scissors don't change
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Jan 2018 17:20:06 +0000 (18:20 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 8 Jan 2018 20:24:58 +0000 (21:24 +0100)
commitbe16bbe1d391d43cbccf4da2f1759ba52b016266
tree7d8c77ffba256437065ae064657f5c1c96b5220f
parentb09b3f88341b7cd31eb8b1921d8d2b29fd0bfaa3
radv: avoid PS partial flushes when viewports/scissors don't change

For Vega10 and Raven that need a special workaround for the
scissor bug.

This seems to give a minor boost for Talos and Dota 2, at least.

To reduce the cost of memcmp, the driver checks if it's
really useful to do the comparison.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c