From d180de35320eafa3df3d76f0e82b332656530126 Mon Sep 17 00:00:00 2001 From: Christian König Date: Thu, 14 Jan 2016 13:40:25 +0100 Subject: st/vdpau: use linear layout for output surfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Works around a bug in radeonsi and tiling is actually not very beneficial in this use case. Signed-off-by: Christian König Reviewed-by: Leo Liu --- src/gallium/state_trackers/vdpau/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/state_trackers/vdpau/output.c b/src/gallium/state_trackers/vdpau/output.c index 3248f76808d..95f15cb1264 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); -- cgit v1.2.3