intel/blorp: Move the gen7 stencil format workaround to blorp_blit

It's not needed for blorp_copy because it already overrides formats.
It's also not needed for blorp_clear because it clears stencil as
stencil.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Jason Ekstrand
2017-05-13 17:00:39 -07:00
parent c19150af5c
commit 554a1731a5
2 changed files with 9 additions and 5 deletions

View File

@@ -81,11 +81,6 @@ brw_blorp_surface_info_init(struct blorp_context *blorp,
* map it as 8-bit BGRA.
*/
format = ISL_FORMAT_B8G8R8A8_UNORM;
} else if (surf->surf->usage & ISL_SURF_USAGE_STENCIL_BIT) {
assert(surf->surf->format == ISL_FORMAT_R8_UINT);
/* Prior to Broadwell, we can't render to R8_UINT */
if (blorp->isl_dev->info->gen < 8)
format = ISL_FORMAT_R8_UNORM;
}
info->surf = *surf->surf;