From 3ebe604ad61fccfb50d9a54edee8a2cce45ebfdc Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 9 Apr 2021 10:47:27 +0200 Subject: [PATCH] lavapipe: ask pipe-driver for int16 support We shouldn't assume the driver can deal with int16 unless it reports that it can. ... And LLVMpipe isn't quite there yet, see this MR for details: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10185 Fixes: b38879f8c5f ("vallium: initial import of the vulkan frontend") Reviewed-By: Mike Blumenkrantz Reviewed-by: Eric Anholt Part-of: --- src/gallium/frontends/lavapipe/lvp_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index a37346fd7a8..7f58d1d1d34 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -450,7 +450,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceFeatures( .shaderCullDistance = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_CULL_DISTANCE) == 1), .shaderFloat64 = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_DOUBLES) == 1), .shaderInt64 = (pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_INT64) == 1), - .shaderInt16 = true, + .shaderInt16 = (min_shader_param(pdevice->pscreen, PIPE_SHADER_CAP_INT16) == 1), .alphaToOne = true, .variableMultisampleRate = false, .inheritedQueries = false,