Browse Source

intel/blorp: Assert that no one tries to blit combined depth stencil

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
tags/17.2-branchpoint
Jason Ekstrand 9 years ago
parent
commit
fa13ef285d
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/intel/blorp/blorp_blit.c

+ 6
- 0
src/intel/blorp/blorp_blit.c View File

@@ -2042,6 +2042,12 @@ blorp_blit(struct blorp_batch *batch,
struct blorp_params params;
blorp_params_init(&params);

/* We cannot handle combined depth and stencil. */
if (src_surf->surf->usage & ISL_SURF_USAGE_STENCIL_BIT)
assert(src_surf->surf->format == ISL_FORMAT_R8_UINT);
if (dst_surf->surf->usage & ISL_SURF_USAGE_STENCIL_BIT)
assert(dst_surf->surf->format == ISL_FORMAT_R8_UINT);

if (dst_surf->surf->usage & ISL_SURF_USAGE_STENCIL_BIT) {
assert(src_surf->surf->usage & ISL_SURF_USAGE_STENCIL_BIT);
/* Prior to Broadwell, we can't render to R8_UINT */

Loading…
Cancel
Save