mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
iris: Not all gfx12+ have aux_map_ctx
This code matches other similar cases in iris. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14152>
This commit is contained in:
parent
36425c43c9
commit
f94ff2cc03
1 changed files with 5 additions and 4 deletions
|
|
@ -560,10 +560,11 @@ static void
|
|||
map_aux_addresses(struct iris_screen *screen, struct iris_resource *res,
|
||||
enum isl_format format, unsigned plane)
|
||||
{
|
||||
const struct intel_device_info *devinfo = &screen->devinfo;
|
||||
if (devinfo->ver >= 12 && isl_aux_usage_has_ccs(res->aux.usage)) {
|
||||
void *aux_map_ctx = iris_bufmgr_get_aux_map_context(screen->bufmgr);
|
||||
assert(aux_map_ctx);
|
||||
void *aux_map_ctx = iris_bufmgr_get_aux_map_context(screen->bufmgr);
|
||||
if (!aux_map_ctx)
|
||||
return;
|
||||
|
||||
if (isl_aux_usage_has_ccs(res->aux.usage)) {
|
||||
const unsigned aux_offset = res->aux.extra_aux.surf.size_B > 0 ?
|
||||
res->aux.extra_aux.offset : res->aux.offset;
|
||||
const uint64_t format_bits =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue