mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
llvmpipe: disable 64-bit integer textures.
This fixes some crashes in VK-GL-CTS where it doesn't deal with these.
Cc: mesa-stable
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13617>
(cherry picked from commit 53a8faafc1)
This commit is contained in:
parent
ca3f3318e4
commit
90486b44ae
2 changed files with 11 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@
|
|||
"description": "llvmpipe: disable 64-bit integer textures.",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -748,6 +748,16 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
|||
format_desc->block.bits != 96) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Disable 64-bit integer formats for RT/samplers.
|
||||
* VK CTS crashes with these and they don't make much sense.
|
||||
*/
|
||||
int c = util_format_get_first_non_void_channel(format_desc->format);
|
||||
if (c >= 0) {
|
||||
if (format_desc->channel[c].pure_integer && format_desc->channel[c].size == 64)
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!(bind & PIPE_BIND_VERTEX_BUFFER) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue