diff options
author | Keith Whitwell <[email protected]> | 2009-11-03 23:16:02 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-11-04 10:09:39 +0000 |
commit | a277bb20debc413f6ccf46f529497bf8bafa64dd (patch) | |
tree | ba3885ccdd386b674b221bc680be37c0cddd4eb8 /src/gallium/drivers/i965/brw_batchbuffer.h | |
parent | 4ea94c04c9ab7b11fa06c60f2487a911f1422844 (diff) |
i965g: convert read/write domain pairs into single usage value
Easier to understand what's going on in the driver sources, convert
stereotype usage values back to GEM read/write domain flags in the
winsys.
Diffstat (limited to 'src/gallium/drivers/i965/brw_batchbuffer.h')
-rw-r--r-- | src/gallium/drivers/i965/brw_batchbuffer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/i965/brw_batchbuffer.h b/src/gallium/drivers/i965/brw_batchbuffer.h index d687b79f930..b7186b3757d 100644 --- a/src/gallium/drivers/i965/brw_batchbuffer.h +++ b/src/gallium/drivers/i965/brw_batchbuffer.h @@ -77,8 +77,7 @@ int brw_batchbuffer_data(struct brw_batchbuffer *batch, int brw_batchbuffer_emit_reloc(struct brw_batchbuffer *batch, struct brw_winsys_buffer *buffer, - uint32_t read_domains, - uint32_t write_domain, + enum brw_buffer_usage usage, uint32_t offset); /* Inline functions - might actually be better off with these @@ -125,10 +124,10 @@ brw_batchbuffer_require_space(struct brw_batchbuffer *batch, #define OUT_BATCH(d) brw_batchbuffer_emit_dword(brw->batch, d) -#define OUT_RELOC(buf, read_domains, write_domain, delta) do { \ +#define OUT_RELOC(buf, usage, delta) do { \ assert((unsigned) (delta) < buf->size); \ brw_batchbuffer_emit_reloc(brw->batch, buf, \ - read_domains, write_domain, delta); \ + usage, delta); \ } while (0) #ifdef DEBUG |