From: Vadim Girlin Date: Sun, 21 Apr 2013 15:10:32 +0000 (+0400) Subject: r600g: use enum type for domains field in struct r600_resource X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbb065d629d2f79a6224fc3e5e89d5acc275e3b4;p=mesa.git r600g: use enum type for domains field in struct r600_resource This prevents the problems when the header is included in C++ code. --- diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h index d07ff9e1e04..e20e9421205 100644 --- a/src/gallium/drivers/r600/r600_resource.h +++ b/src/gallium/drivers/r600/r600_resource.h @@ -41,7 +41,7 @@ struct r600_resource { struct radeon_winsys_cs_handle *cs_buf; /* Resource state. */ - unsigned domains; + enum radeon_bo_domain domains; /* The buffer range which is initialized (with a write transfer, * streamout, DMA, or as a random access target). The rest of