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:
Dave Airlie 2021-02-08 10:24:25 +10:00 committed by Marge Bot
parent 8258726d90
commit 4326c5460d

View file

@ -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;