From 8ad12c8bec4bd20ea4241e412b477a155a42186b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 25 Oct 2018 15:33:00 -0400 Subject: gallium: rework PIPE_HANDLE_USAGE_* flags Only radeonsi uses them, so adjust them to match its needs. --- src/mesa/state_tracker/st_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/state_tracker/st_vdpau.c b/src/mesa/state_tracker/st_vdpau.c index d0b9cfbf4f8..bfc6adf7f77 100644 --- a/src/mesa/state_tracker/st_vdpau.c +++ b/src/mesa/state_tracker/st_vdpau.c @@ -133,7 +133,7 @@ st_vdpau_resource_from_description(struct gl_context *ctx, whandle.stride = desc->stride; res = st->pipe->screen->resource_from_handle(st->pipe->screen, &templ, &whandle, - PIPE_HANDLE_USAGE_READ_WRITE); + PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE); close(desc->handle); return res; -- cgit v1.2.3