summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_builder.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-25 14:46:33 +0800
committerChia-I Wu <[email protected]>2014-09-26 21:15:55 +0800
commit2df2f60e8db7e2fe4d59377c8c849d6e8eb6234e (patch)
treece3f38bac114933bbdd00e2df6fcc5835098df49 /src/gallium/drivers/ilo/ilo_builder.h
parenta7f2ab668c98226c3bbc370f8e48ca0f02b05009 (diff)
ilo: rename state buffer to dynamic buffer
Both dynamic buffer and surface buffer are state buffers. We should not use state buffer to refer to the former. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_builder.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_builder.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gallium/drivers/ilo/ilo_builder.h b/src/gallium/drivers/ilo/ilo_builder.h
index ab1ee11dce6..8203f669806 100644
--- a/src/gallium/drivers/ilo/ilo_builder.h
+++ b/src/gallium/drivers/ilo/ilo_builder.h
@@ -39,7 +39,7 @@ enum ilo_builder_writer_type {
};
enum ilo_builder_item_type {
- /* for state buffer */
+ /* for dynamic buffer */
ILO_BUILDER_ITEM_BLOB,
ILO_BUILDER_ITEM_CLIP_VIEWPORT,
ILO_BUILDER_ITEM_SF_VIEWPORT,
@@ -264,17 +264,17 @@ ilo_builder_writer_reloc(struct ilo_builder *builder,
}
/**
- * Reserve a region from the state buffer. Both the offset, in bytes, and the
- * pointer to the reserved region are returned. The pointer is only valid
+ * Reserve a region from the dynamic buffer. Both the offset, in bytes, and
+ * the pointer to the reserved region are returned. The pointer is only valid
* until the next reserve call.
*
* Note that \p alignment is in bytes and \p len is in DWords.
*/
static inline uint32_t
-ilo_builder_state_pointer(struct ilo_builder *builder,
- enum ilo_builder_item_type item,
- unsigned alignment, unsigned len,
- uint32_t **dw)
+ilo_builder_dynamic_pointer(struct ilo_builder *builder,
+ enum ilo_builder_item_type item,
+ unsigned alignment, unsigned len,
+ uint32_t **dw)
{
const enum ilo_builder_writer_type which = ILO_BUILDER_WRITER_BATCH;
const unsigned size = len << 2;
@@ -295,17 +295,17 @@ ilo_builder_state_pointer(struct ilo_builder *builder,
}
/**
- * Write a dynamic state to the state buffer.
+ * Write a dynamic state to the dynamic buffer.
*/
static inline uint32_t
-ilo_builder_state_write(struct ilo_builder *builder,
- enum ilo_builder_item_type item,
- unsigned alignment, unsigned len,
- const uint32_t *dw)
+ilo_builder_dynamic_write(struct ilo_builder *builder,
+ enum ilo_builder_item_type item,
+ unsigned alignment, unsigned len,
+ const uint32_t *dw)
{
uint32_t offset, *dst;
- offset = ilo_builder_state_pointer(builder, item, alignment, len, &dst);
+ offset = ilo_builder_dynamic_pointer(builder, item, alignment, len, &dst);
memcpy(dst, dw, len << 2);
return offset;
@@ -326,7 +326,7 @@ ilo_builder_surface_write(struct ilo_builder *builder,
assert(item == ILO_BUILDER_ITEM_SURFACE ||
item == ILO_BUILDER_ITEM_BINDING_TABLE);
- return ilo_builder_state_write(builder, item, alignment, len, dw);
+ return ilo_builder_dynamic_write(builder, item, alignment, len, dw);
}
/**