aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-08-28 11:56:29 +0800
committerChia-I Wu <olvaffe@gmail.com>2014-08-28 12:23:26 +0800
commita982ffbbec84e99f2f9306c554a22fd117676aa3 (patch)
tree5f31e0c09419c45cca480d9b5a601665366a4427
parentd8c5658d5a3ecf90236b0e65b9bbdde5149e0bd4 (diff)
downloadusermoji-a982ffbbec84e99f2f9306c554a22fd117676aa3.tar.xz
icd: rename and prefix shader_il.h
Rename shader_il.h to icd-bil.h, and make it more C compatible. Prefix everything with icd_.
-rw-r--r--icd/common/icd-bil.h (renamed from icd/common/shader_il.h)18
1 files changed, 10 insertions, 8 deletions
diff --git a/icd/common/shader_il.h b/icd/common/icd-bil.h
index 155ca36d..43cc354c 100644
--- a/icd/common/shader_il.h
+++ b/icd/common/icd-bil.h
@@ -22,16 +22,18 @@
* DEALINGS IN THE SOFTWARE.
*/
-#ifndef SHADER_IL_H
-#define SHADER_IL_H
+#ifndef ICD_BIL_H
+#define ICD_BIL_H
-const int BILMagicNumber = 0x07230203;
-const int BILVersion = 99;
+#include <stdint.h>
-struct bil_header {
- uint32_t bil_magic;
- uint32_t bil_version;
+#define ICD_BIL_MAGIC 0x07230203
+#define ICD_BIL_VERSION 99
+
+struct icd_bil_header {
+ uint32_t magic;
+ uint32_t version;
uint32_t gen_magic; // Generator's magic number
};
-#endif // SHADER_IL_H
+#endif /* ICD_BIL_H */