OSDN Git Service

intel/isl: Rework the asserts and fails in isl_surf_get_ccs
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Sep 2016 11:03:27 +0000 (04:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Nov 2016 20:03:24 +0000 (12:03 -0800)
commit26c8bb7bc056ee2e5795fa34bcb2a666554b09dd
treef8a892ba4db45a35831fbb872d3a97012a9b4bfb
parent818c7bfb313014eb2c37bf40753524149ae1230d
intel/isl: Rework the asserts and fails in isl_surf_get_ccs

There are some invariants such as number of samples on which we should
assert.  However, most other things should silently return false since
they're much easier for isl_surf_get_ccs to check than the caller.  We also
update the checking to be a bit more complete.
src/intel/isl/isl.c