mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
freedreno/a5xx: handle compute resources
Not *entirely* sure why this is a different BIND bit, but it is. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
82c71b09d5
commit
d7af35a7f3
1 changed files with 4 additions and 2 deletions
|
|
@ -67,13 +67,15 @@ fd5_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
if ((usage & (PIPE_BIND_RENDER_TARGET |
|
||||
PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_SCANOUT |
|
||||
PIPE_BIND_SHARED)) &&
|
||||
PIPE_BIND_SHARED |
|
||||
PIPE_BIND_COMPUTE_RESOURCE)) &&
|
||||
(fd5_pipe2color(format) != (enum a5xx_color_fmt)~0) &&
|
||||
(fd5_pipe2tex(format) != (enum a5xx_tex_fmt)~0)) {
|
||||
retval |= usage & (PIPE_BIND_RENDER_TARGET |
|
||||
PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_SCANOUT |
|
||||
PIPE_BIND_SHARED);
|
||||
PIPE_BIND_SHARED |
|
||||
PIPE_BIND_COMPUTE_RESOURCE);
|
||||
}
|
||||
|
||||
/* For ARB_framebuffer_no_attachments: */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue