mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
Revert "st/dri: assume external consumers of back buffers can write to the buffers"
This reverts commit1d1b457821. This series caused unexpected flickering artifacts with Iris driver on Chrome OS and EGL_EXT_image_flush_external spec has not been published yet. Acked-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Kristian H. Kristensen <hoegsberg@google.com> (cherry picked from commit7951eb146c)
This commit is contained in:
parent
9445d96d5c
commit
36fbe5b292
1 changed files with 6 additions and 6 deletions
|
|
@ -1108,10 +1108,10 @@ dri2_query_image_by_resource_handle(__DRIimage *image, int attrib, int *value)
|
|||
return false;
|
||||
}
|
||||
|
||||
usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
|
||||
|
||||
if (image->use & __DRI_IMAGE_USE_BACKBUFFER)
|
||||
usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
|
||||
usage = PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
|
||||
else
|
||||
usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
|
||||
|
||||
if (!pscreen->resource_get_handle(pscreen, NULL, image->texture,
|
||||
&whandle, usage))
|
||||
|
|
@ -1194,10 +1194,10 @@ dri2_query_image_by_resource_param(__DRIimage *image, int attrib, int *value)
|
|||
return false;
|
||||
}
|
||||
|
||||
handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
|
||||
|
||||
if (image->use & __DRI_IMAGE_USE_BACKBUFFER)
|
||||
handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
|
||||
handle_usage = PIPE_HANDLE_USAGE_EXPLICIT_FLUSH;
|
||||
else
|
||||
handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE;
|
||||
|
||||
if (!dri2_resource_get_param(image, param, handle_usage, &res_param))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue