diff options
author | Chia-I Wu <[email protected]> | 2014-09-20 00:46:35 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-20 10:13:53 +0800 |
commit | 6c0de4b979520583c1033794380b1c2e6785064e (patch) | |
tree | ac8437e1ab0654ad92b39fd152248a2e7ce05db3 /src/gallium/drivers/ilo/ilo_transfer.c | |
parent | 284d767be0589143d5c20fdf1f3b52cadf2663f6 (diff) |
ilo: add a new struct for context states
Move pipe states in ilo_context to the new ilo_state_vector. The motivation
is that ilo_context consists of several loosely related things. When we need
an ilo_context somewhere, we usually need only one or two of the things in it.
This change makes ilo_state_vector one such thing.
An immediate result is that we no longer need ilo_context in 3D pipelines,
something we have planned for since early days.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_transfer.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c index 3062bf5435f..34a94f2e9cd 100644 --- a/src/gallium/drivers/ilo/ilo_transfer.c +++ b/src/gallium/drivers/ilo/ilo_transfer.c @@ -1083,7 +1083,7 @@ choose_transfer_method(struct ilo_context *ilo, struct ilo_transfer *xfer) } if (resource_renamed) - ilo_mark_states_with_resource_renamed(ilo, res); + ilo_state_vector_resource_renamed(&ilo->state_vector, res); } return true; @@ -1101,7 +1101,7 @@ buf_pwrite(struct ilo_context *ilo, struct ilo_buffer *buf, if ((usage & PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE) && ilo_buffer_rename_bo(buf)) { - ilo_mark_states_with_resource_renamed(ilo, &buf->base); + ilo_state_vector_resource_renamed(&ilo->state_vector, &buf->base); unblocked = true; } else { |