Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7951>
switch (res->b.b.usage) {
case PIPE_USAGE_STREAM:
- res->flags = RADEON_FLAG_GTT_WC;
- FALLTHROUGH;
+ res->flags |= RADEON_FLAG_GTT_WC;
+ if (sscreen->info.all_vram_visible)
+ res->domains = RADEON_DOMAIN_VRAM;
+ else
+ res->domains = RADEON_DOMAIN_GTT;
+ break;
case PIPE_USAGE_STAGING:
/* Transfers are likely to occur more often with these
* resources. */