diff options
author | Christian König <christian.koenig@amd.com> | 2016-01-14 13:40:25 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2016-03-17 14:47:25 +0100 |
commit | 6bc03389a9504f1bb6743696042af7ce29f1ff47 (patch) | |
tree | 5d610cda709595762f7923008436d2c0e59b3f0c | |
parent | e63465efecf8b302d6384379878f7967bc39aece (diff) |
st/vdpau: use linear layout for output surfaces
Works around a bug in radeonsi and tiling is actually
not very beneficial in this use case.
Signed-off-by: Christian König <christian.koenig@amd.com>
-rw-r--r-- | src/gallium/state_trackers/vdpau/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 3248f76808..95f15cb126 100644 --- a/src/gallium/state_trackers/vdpau/output.c +++ b/src/gallium/state_trackers/vdpau/output.c @@ -79,7 +79,8 @@ vlVdpOutputSurfaceCreate(VdpDevice device, res_tmpl.height0 = height; res_tmpl.depth0 = 1; res_tmpl.array_size = 1; - res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; + res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET | + PIPE_BIND_LINEAR; res_tmpl.usage = PIPE_USAGE_DEFAULT; pipe_mutex_lock(dev->mutex); |