summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>2016-05-08 22:44:07 +0200
committerDave Airlie <airlied@redhat.com>2016-05-14 08:28:17 +1000
commit2be258ea1826b2bee2173efafa98af9874cfddfa (patch)
treed8f469cd9aa9d51b19a016fe5d859d1b785fc7db /src/gallium/drivers/softpipe
parentd656736bbf926c219b6bcbc0ad59132fc82a7382 (diff)
downloadexternal_mesa3d-2be258ea1826b2bee2173efafa98af9874cfddfa.zip
external_mesa3d-2be258ea1826b2bee2173efafa98af9874cfddfa.tar.gz
external_mesa3d-2be258ea1826b2bee2173efafa98af9874cfddfa.tar.bz2
gallium: Add a pipe cap for arb_cull_distance
This lets us safely enable or disable the extension as needed Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index 031602b..103e665 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -272,6 +272,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_PCI_DEVICE:
case PIPE_CAP_PCI_FUNCTION:
case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR:
+ case PIPE_CAP_CULL_DISTANCE:
return 0;
case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
return 4;