radv: Don't set dynamic state for pipelines with rasterizer dicard.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 2 May 2017 21:39:29 +0000 (23:39 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 2 May 2017 22:12:56 +0000 (00:12 +0200)
commit9e847eedd5e71fa102003326a3e04e485884fe24
tree069822794d3a610db86ad6645886b02fe06e76c8
parenta52470402515c46cd9f33a5d83dc8d2bc9f7bae9
radv: Don't set dynamic state for pipelines with rasterizer dicard.

All of the dynamic states apply to rasterization & fragment processing,
so we don't need to set them if we don't rasterize.

We don't clear the dirty flags for them though, so we don't miss any
updates for the next pipeline with rasterization.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Fixes: 76603aa90b8 "radv: Drop the default viewport when 0 viewports are given."
src/amd/vulkan/radv_cmd_buffer.c