zink: enable cull-distance if supported
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 30 Jan 2020 21:23:39 +0000 (22:23 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Jun 2020 09:14:56 +0000 (09:14 +0000)
This is already implemented, and we just need to flip the switch to turn
it on.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5479>

src/gallium/drivers/zink/zink_screen.c

index 5cb02587526d1441241360f1eb06ab057e6f9c3e..fee0765bdfdb005234f76ffb82dca47ce787cd6e 100644 (file)
@@ -270,10 +270,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_PCI_FUNCTION:
       return 0; /* TODO: figure these out */
 
-#if 0 /* TODO: Enable me */
    case PIPE_CAP_CULL_DISTANCE:
       return screen->feats.shaderCullDistance;
-#endif
 
    case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS:
       return screen->props.limits.viewportSubPixelBits;