[Mesa-dev] [PATCH 13/14] anv: Enable clip and cull distance support.

Jason Ekstrand jason at jlekstrand.net
Thu Nov 17 04:44:10 UTC 2016


Mind also checking it off in vulkan/TODO?

On Mon, Nov 14, 2016 at 5:41 PM, Kenneth Graunke <kenneth at whitecape.org>
wrote:

> Everything is now in place, and we appear to pass the tests on Gen7+.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/intel/vulkan/anv_device.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 0999fcf..2516fc4 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -439,8 +439,8 @@ void anv_GetPhysicalDeviceFeatures(
>        .shaderStorageImageArrayDynamicIndexing   = true,
>        .shaderStorageImageReadWithoutFormat      = false,
>        .shaderStorageImageWriteWithoutFormat     = true,
> -      .shaderClipDistance                       = false,
> -      .shaderCullDistance                       = false,
> +      .shaderClipDistance                       = true,
> +      .shaderCullDistance                       = true,
>        .shaderFloat64                            = false,
>        .shaderInt64                              = false,
>        .shaderInt16                              = false,
> @@ -576,9 +576,9 @@ void anv_GetPhysicalDeviceProperties(
>        .maxSampleMaskWords                       = 1,
>        .timestampComputeAndGraphics              = false,
>        .timestampPeriod                          = time_stamp_base,
> -      .maxClipDistances                         = 0 /* FIXME */,
> -      .maxCullDistances                         = 0 /* FIXME */,
> -      .maxCombinedClipAndCullDistances          = 0 /* FIXME */,
> +      .maxClipDistances                         = 8,
> +      .maxCullDistances                         = 8,
> +      .maxCombinedClipAndCullDistances          = 8,
>        .discreteQueuePriorities                  = 1,
>        .pointSizeRange                           = { 0.125, 255.875 },
>        .lineWidthRange                           = { 0.0, 7.9921875 },
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161116/0dd54ab5/attachment.html>


More information about the mesa-dev mailing list