summaryrefslogtreecommitdiffstats
path: root/src/intel/blorp
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-23 17:20:34 -0700
committerJason Ekstrand <[email protected]>2016-09-13 12:40:12 -0700
commit823ab8343277a64bd64c3389982db01aa1aa7f34 (patch)
treed75c0f8064ce11626208675fcb24e71f95842ada /src/intel/blorp
parentc0b9776cd607d059367b407b18d5c3c2c264099b (diff)
intel/blorp: Use #defines for all __gen_ helpers
This allows us to #undef them later if we don't want them to persist Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/blorp')
-rw-r--r--src/intel/blorp/blorp_genX_exec.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index f41634703d1..5972cc4afd8 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -75,12 +75,9 @@ blorp_emit_3dstate_multisample(struct blorp_batch *batch, unsigned samples);
#include "genxml/gen_macros.h"
-#define __gen_address_type struct blorp_address
-#define __gen_user_data struct blorp_batch
-
static uint64_t
-__gen_combine_address(struct blorp_batch *batch, void *location,
- struct blorp_address address, uint32_t delta)
+_blorp_combine_address(struct blorp_batch *batch, void *location,
+ struct blorp_address address, uint32_t delta)
{
if (address.buffer == NULL) {
return address.offset + delta;
@@ -89,6 +86,10 @@ __gen_combine_address(struct blorp_batch *batch, void *location,
}
}
+#define __gen_address_type struct blorp_address
+#define __gen_user_data struct blorp_batch
+#define __gen_combine_address _blorp_combine_address
+
#include "genxml/genX_pack.h"
#define _blorp_cmd_length(cmd) cmd ## _length