mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ac/surface: add RADEON_SURF_SHAREABLE
Shareable textures won't use tile swizzle. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
d311e837f4
commit
4e757d591d
2 changed files with 4 additions and 1 deletions
|
|
@ -67,6 +67,7 @@ enum radeon_micro_mode {
|
|||
#define RADEON_SURF_TC_COMPATIBLE_HTILE (1 << 23)
|
||||
#define RADEON_SURF_IMPORTED (1 << 24)
|
||||
#define RADEON_SURF_OPTIMIZE_FOR_SPACE (1 << 25)
|
||||
#define RADEON_SURF_SHAREABLE (1 << 26)
|
||||
|
||||
struct legacy_surf_level {
|
||||
uint64_t offset;
|
||||
|
|
|
|||
|
|
@ -280,8 +280,10 @@ static int r600_init_surface(struct r600_common_screen *rscreen,
|
|||
flags |= RADEON_SURF_SCANOUT;
|
||||
}
|
||||
|
||||
if (ptex->bind & PIPE_BIND_SHARED)
|
||||
flags |= RADEON_SURF_SHAREABLE;
|
||||
if (is_imported)
|
||||
flags |= RADEON_SURF_IMPORTED;
|
||||
flags |= RADEON_SURF_IMPORTED | RADEON_SURF_SHAREABLE;
|
||||
if (!(ptex->flags & R600_RESOURCE_FLAG_FORCE_TILING))
|
||||
flags |= RADEON_SURF_OPTIMIZE_FOR_SPACE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue