diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index a9b1bae7876..efe96a58265 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -3348,7 +3348,7 @@ int ac_compute_surface(struct ac_addrlib *addrlib, const struct radeon_info *inf return r; /* Images are emulated on some CDNA chips. */ - if (!info->has_image_opcodes) + if (!info->has_image_opcodes && !(surf->flags & RADEON_SURF_VIDEO_REFERENCE)) mode = RADEON_SURF_MODE_LINEAR_ALIGNED; /* 0 offsets mean disabled. */