mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeonsi: ignore PIPE_BIND_SCANOUT for imported textures
It's obtained from the BO metadata. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
This commit is contained in:
parent
ba10fb3f7f
commit
bfddfd12b6
1 changed files with 3 additions and 2 deletions
|
|
@ -310,7 +310,7 @@ static int si_init_surface(struct si_screen *sscreen,
|
|||
if (!is_imported && (sscreen->debug_flags & DBG(NO_DCC)))
|
||||
flags |= RADEON_SURF_DISABLE_DCC;
|
||||
|
||||
if (ptex->bind & PIPE_BIND_SCANOUT || is_scanout) {
|
||||
if (is_scanout) {
|
||||
/* This should catch bugs in gallium users setting incorrect flags. */
|
||||
assert(ptex->nr_samples <= 1 &&
|
||||
ptex->array_size == 1 &&
|
||||
|
|
@ -1695,7 +1695,8 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
|
|||
plane_templ[i].bind |= PIPE_BIND_SHARED;
|
||||
|
||||
if (si_init_surface(sscreen, &surface[i], &plane_templ[i],
|
||||
tile_mode, 0, false, false,
|
||||
tile_mode, 0, false,
|
||||
plane_templ[i].bind & PIPE_BIND_SCANOUT,
|
||||
is_flushed_depth, tc_compatible_htile))
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue