aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-06-14 16:54:24 +0200
committerGert Wollny <[email protected]>2019-06-30 18:41:35 +0200
commit843723e2f7c79633cb0fe910b60684b8b2d289f6 (patch)
tree5a018e563c1c0ebfc9543cb93d010c247d7aee24 /src/gallium/drivers/llvmpipe
parent187c308b96d0501552ec0287ec117273b51228f0 (diff)
gallium: Add CAP for opcode DIV
Not all drivers support TGSI_OPCODE_DIV, so we should have a cap to be able to check this. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index bfe7a378679..3d5fbb06231 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -271,6 +271,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_INT64:
case PIPE_CAP_INT64_DIVMOD:
case PIPE_CAP_QUERY_SO_OVERFLOW:
+ case PIPE_CAP_TGSI_DIV:
return 1;
case PIPE_CAP_VENDOR_ID: