From a5aab63fb10607ea1f089e652d24f5acb7893a69 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 30 Sep 2020 10:59:14 +1000 Subject: [PATCH] lavapipe: fix dEQP-VK.info.device_properties Fix bounds and widelines aren't supported for now. Reviewed-by: Adam Jackson Part-of: --- src/gallium/frontends/lavapipe/lvp_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index dea23eca5de..0ec458dcc2b 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -465,7 +465,7 @@ void lvp_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxSamplerAnisotropy = 16, .maxViewports = pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_MAX_VIEWPORTS), .maxViewportDimensions = { (1 << 14), (1 << 14) }, - .viewportBoundsRange = { -16384.0, 16384.0 }, + .viewportBoundsRange = { -32768.0, 32768.0 }, .viewportSubPixelBits = pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_VIEWPORT_SUBPIXEL_BITS), .minMemoryMapAlignment = 4096, /* A page */ .minTexelBufferOffsetAlignment = pdevice->pscreen->get_param(pdevice->pscreen, PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT), @@ -499,9 +499,9 @@ void lvp_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxCombinedClipAndCullDistances = 8, .discreteQueuePriorities = 2, .pointSizeRange = { 0.0, pdevice->pscreen->get_paramf(pdevice->pscreen, PIPE_CAPF_MAX_POINT_WIDTH) }, - .lineWidthRange = { 0.0, pdevice->pscreen->get_paramf(pdevice->pscreen, PIPE_CAPF_MAX_LINE_WIDTH) }, + .lineWidthRange = { 1.0, 1.0 }, .pointSizeGranularity = (1.0 / 8.0), - .lineWidthGranularity = (1.0 / 128.0), + .lineWidthGranularity = 0.0, .strictLines = false, /* FINISHME */ .standardSampleLocations = true, .optimalBufferCopyOffsetAlignment = 128,