summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-05-16 15:43:29 +0200
committerFrancisco Jerez <[email protected]>2012-05-16 18:51:35 +0200
commit03e3bc4ba56f1021899a5f773b6ec21893619e3a (patch)
treeefd449367808e97d23cd77d5c35b459ac12d4527 /src/gallium/state_trackers/clover
parent88a2e2388bfeee66cb6d873558431b0e0af7e316 (diff)
gallium/auxiliary/pipe-loader: Fix usage of anonymous union.
Anonymous unions aren't part of the C99 standard. Fixes build on GCC versions older than 4.6. https://bugs.freedesktop.org/show_bug.cgi?id=50001 Reported-by: Michael Lange <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp
index 1f40010b019..69b1b4a6ac0 100644
--- a/src/gallium/state_trackers/clover/core/device.cpp
+++ b/src/gallium/state_trackers/clover/core/device.cpp
@@ -75,7 +75,7 @@ _cl_device_id::vendor_id() const {
case PIPE_LOADER_DEVICE_SOFTWARE:
return 0;
case PIPE_LOADER_DEVICE_PCI:
- return ldev->pci.vendor_id;
+ return ldev->u.pci.vendor_id;
default:
assert(0);
return 0;