diff options
author | Sinclair Yeh <[email protected]> | 2016-08-04 12:57:06 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-05-24 11:33:46 -0600 |
commit | 14d16872298a88ddbf704ccdd5b0fc3b0e78778b (patch) | |
tree | ecdcce3433f23fffa01cbd511c8b7723e6852a6c /src/gallium | |
parent | c85a35d4650806e7fe7e3b3348efa8180dfc6620 (diff) |
svga: Limit svga message capability to newer compilers
The assembly code used by the SVGA message feature doesn't
build properly with older compilers, so limit it to only
gcc 5.3.0 and newer.
Also modified the stubs to avoid "unused variable" warnings.
Reviewed-by: Charmaine Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rwxr-xr-x | src/gallium/drivers/svga/svga_msg.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_msg.c b/src/gallium/drivers/svga/svga_msg.c index 3bbe89f5f6b..e3f72b628f4 100755 --- a/src/gallium/drivers/svga/svga_msg.c +++ b/src/gallium/drivers/svga/svga_msg.c @@ -57,7 +57,7 @@ #define HIGH_WORD(X) ((X & 0xFFFF0000) >> 16) -#if defined(PIPE_CC_GCC) +#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION > 502) /** * Hypervisor-specific bi-directional communication channel. Should never @@ -241,15 +241,25 @@ typedef uint32_t VMW_REG; #define VMW_PORT(cmd, in_bx, in_si, in_di, \ port_num, magic, \ - ax, bx, cx, dx, si, di) + ax, bx, cx, dx, si, di) \ + (void) in_bx; \ + (void) ax; (void) bx; (void) cx; \ + (void) dx; (void) si; (void) di; #define VMW_PORT_HB_OUT(cmd, in_cx, in_si, in_di, \ port_num, magic, bp, \ - ax, bx, cx, dx, si, di) + ax, bx, cx, dx, si, di) \ + (void) in_cx; (void) bp; \ + (void) ax; (void) bx; (void) cx; \ + (void) dx; (void) si; (void) di; + #define VMW_PORT_HB_IN(cmd, in_cx, in_si, in_di, \ port_num, magic, bp, \ - ax, bx, cx, dx, si, di) + ax, bx, cx, dx, si, di) \ + (void) bp; \ + (void) ax; (void) bx; (void) cx; \ + (void) dx; (void) si; (void) di; #endif /* #if PIPE_CC_GCC */ |