summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-01-12 12:31:14 -0800
committerEric Anholt <[email protected]>2018-01-12 21:57:52 -0800
commite41e33fdb8737a92c008f8e165cf755bf7ecc78d (patch)
treeeb01513a25e87d41bf3322c28dbf853d3622c253 /src/gallium/drivers/vc5/vc5_screen.c
parentaa77a9cf5a4821100eb0dbc9a47bcff410a3a73f (diff)
broadcom/vc5: Port the draw-time state emission to V3D 4.1.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_screen.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_screen.c b/src/gallium/drivers/vc5/vc5_screen.c
index 1e794bc223f..b55272edac7 100644
--- a/src/gallium/drivers/vc5/vc5_screen.c
+++ b/src/gallium/drivers/vc5/vc5_screen.c
@@ -102,7 +102,6 @@ vc5_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_START_INSTANCE:
case PIPE_CAP_TGSI_INSTANCEID:
case PIPE_CAP_SM3:
- case PIPE_CAP_INDEP_BLEND_ENABLE: /* XXX */
case PIPE_CAP_TEXTURE_QUERY_LOD:
case PIPE_CAP_PRIMITIVE_RESTART:
case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
@@ -116,6 +115,9 @@ vc5_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_SIGNED_VERTEX_BUFFER_OFFSET:
return 1;
+ case PIPE_CAP_INDEP_BLEND_ENABLE:
+ return screen->devinfo.ver >= 40;
+
case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
return 256;