anv: Remove default scissor and viewport concepts
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 31 Mar 2016 00:13:01 +0000 (17:13 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 14 Apr 2016 01:02:38 +0000 (18:02 -0700)
commit79fbec30fc16399ede9385ef52cb62cefbb388f4
treebe6ffb7d3f717d13d7e7025cf9ee4950a49aaed0
parent1949e502bc74f0d65127ceef024b2c8af848f94c
anv: Remove default scissor and viewport concepts

Users should never provide a scissor or viewport count of 0 because
they are required to set such state in a graphics pipeline. This
behavior was previously only used in Meta, which actually just
disables those hardware operations at pipeline creation time.

Kristian noticed that the current assignment of viewport count
reduces the number of viewport uploads, so it is not removed.

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_clear.c
src/intel/vulkan/anv_meta_resolve.c
src/intel/vulkan/gen7_cmd_buffer.c
src/intel/vulkan/gen8_cmd_buffer.c