mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 18:00:52 +01:00
etnaviv: only try to construct scanout resource when on KMS winsys
Trying to construct a scanout capable buffer will only ever work when when we are on top of a KMS winsys, as the render node isn't capable of allocating contiguous buffers. Tested-by: Marius Vlad <marius.vlad@collabora.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
3d8da347ac
commit
43db0632e7
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ etna_resource_alloc(struct pipe_screen *pscreen, unsigned layout,
|
|||
if (!screen->specs.use_blt && templat->target != PIPE_BUFFER)
|
||||
etna_adjust_rs_align(screen->specs.pixel_pipes, NULL, &paddingY);
|
||||
|
||||
if (templat->bind & PIPE_BIND_SCANOUT) {
|
||||
if (templat->bind & PIPE_BIND_SCANOUT && screen->ro->kms_fd >= 0) {
|
||||
struct pipe_resource scanout_templat = *templat;
|
||||
struct renderonly_scanout *scanout;
|
||||
struct winsys_handle handle;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue