mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
llvmpipe: don't support scaled formats outside vertex buffers
Scaled formats are usually only needed as vertex buffer formats, don't expose them as supported for other things. Lavapipe will use this to export the correct formats support. Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8907>
This commit is contained in:
parent
8258726d90
commit
4326c5460d
1 changed files with 4 additions and 0 deletions
|
|
@ -678,6 +678,10 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
|||
}
|
||||
}
|
||||
|
||||
if (!(bind & PIPE_BIND_VERTEX_BUFFER) &&
|
||||
util_format_is_scaled(format))
|
||||
return false;
|
||||
|
||||
if (bind & PIPE_BIND_DISPLAY_TARGET) {
|
||||
if(!winsys->is_displaytarget_format_supported(winsys, bind, format))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue