i965/blorp: Properly handle mt->first_level
The guts of blorp and ISL don't understand i965's partial miptrees. Instead, we need to subtract off first_level before we hand anything off to blorp. Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
@@ -271,6 +271,9 @@ blorp_surf_for_miptree(struct brw_context *brw,
|
||||
}
|
||||
assert((surf->aux_usage == ISL_AUX_USAGE_NONE) ==
|
||||
(surf->aux_addr.buffer == NULL));
|
||||
|
||||
/* ISL wants real levels, not offset ones. */
|
||||
*level -= mt->first_level;
|
||||
}
|
||||
|
||||
static enum isl_format
|
||||
|
||||
Reference in New Issue
Block a user