anv/meta: Don't set the dynamic state for disabled operations
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 29 Mar 2016 20:31:30 +0000 (13:31 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 14 Apr 2016 00:52:20 +0000 (17:52 -0700)
commit9fae6ee02659463259e9d7d90a2edf5261887503
tree0223b0f7fd5091e2a2890caf71e9ba3a0713101a
parent76b0ba087c50a271867f98eaf2acf0364d5b706e
anv/meta: Don't set the dynamic state for disabled operations

CmdSet* functions dirty the CommandBuffer's dynamic state. This causes
the new state to be emitted when CmdDraw is called. Since we don't need
the state that would be emitted, don't call the CmdSet* functions.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/intel/vulkan/anv_meta_blit.c
src/intel/vulkan/anv_meta_blit2d.c
src/intel/vulkan/anv_meta_clear.c
src/intel/vulkan/anv_meta_resolve.c