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:
Dave Airlie 2021-11-01 09:43:49 +10:00 committed by Eric Engestrom
parent ca3f3318e4
commit 90486b44ae
2 changed files with 11 additions and 1 deletions

View file

@ -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
},

View file

@ -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) &&