/* Compute FMASK. */
if (config->info.samples >= 2 && AddrSurfInfoIn.flags.color &&
- !(surf->flags & RADEON_SURF_NO_FMASK)) {
+ info->has_graphics && !(surf->flags & RADEON_SURF_NO_FMASK)) {
ADDR_COMPUTE_FMASK_INFO_INPUT fin = {0};
ADDR_COMPUTE_FMASK_INFO_OUTPUT fout = {0};
ADDR_TILEINFO fmask_tile_info = {};
}
/* FMASK */
- if (in->numSamples > 1 && !(surf->flags & RADEON_SURF_NO_FMASK)) {
+ if (in->numSamples > 1 && info->has_graphics &&
+ !(surf->flags & RADEON_SURF_NO_FMASK)) {
ADDR2_COMPUTE_FMASK_INFO_INPUT fin = {0};
ADDR2_COMPUTE_FMASK_INFO_OUTPUT fout = {0};