intel/isl: Allow creation of 1-D compressed textures
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 00:43:28 +0000 (17:43 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Oct 2016 21:53:01 +0000 (14:53 -0700)
commitbaade41a5c0c0342ad9db4b5123714dcedc66937
treee01d24e522bdca817f102c2a657746f42c00cf0c
parentf82166578f17306d8ae16fdbc753de3e00d2a97d
intel/isl: Allow creation of 1-D compressed textures

Compressed 1-D textures are not well-defined thing in either GL or Vulkan.
However, auxiliary surfaces are treated as compressed textures in ISL and
we can do HiZ and CCS with 1-D so we need to be able to create them.  In
order to prevent actually using them (the docs say no), we assert in the
state setup code.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/isl/isl.c
src/intel/isl/isl_surface_state.c