mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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 <charmainel@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c85a35d465
commit
14d1687229
1 changed files with 14 additions and 4 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue