return false;
}
+ usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
+
if (image->use & __DRI_IMAGE_USE_BACKBUFFER)
- usage = PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
- else
- usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
+ usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
if (!pscreen->resource_get_handle(pscreen, NULL, image->texture,
&whandle, usage))
return false;
}
+ handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
+
if (image->use & __DRI_IMAGE_USE_BACKBUFFER)
- handle_usage = PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
- else
- handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
+ handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
if (!dri2_resource_get_param(image, param, handle_usage, &res_param))
return false;