diff options
author | Jason Ekstrand <[email protected]> | 2017-12-15 16:48:53 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-01-23 21:10:43 -0800 |
commit | 95ff2322948692f5f7b1d444aabe878fba53304c (patch) | |
tree | b6ff1da9942f6daed62a5c8006f2dd5cec8ac70a /src/intel/vulkan/gen8_cmd_buffer.c | |
parent | 24caee8975355a2b54b41c484ff3c897e1911760 (diff) |
anv/cmd_buffer: Move dynamic state to graphics state
Tested-by: Józef Kucia <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Cc: "18.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/gen8_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/gen8_cmd_buffer.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c index d939d038ae3..2999c99261d 100644 --- a/src/intel/vulkan/gen8_cmd_buffer.c +++ b/src/intel/vulkan/gen8_cmd_buffer.c @@ -36,8 +36,9 @@ void gen8_cmd_buffer_emit_viewport(struct anv_cmd_buffer *cmd_buffer) { - uint32_t count = cmd_buffer->state.dynamic.viewport.count; - const VkViewport *viewports = cmd_buffer->state.dynamic.viewport.viewports; + uint32_t count = cmd_buffer->state.gfx.dynamic.viewport.count; + const VkViewport *viewports = + cmd_buffer->state.gfx.dynamic.viewport.viewports; struct anv_state sf_clip_state = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, count * 64, 64); @@ -79,8 +80,9 @@ void gen8_cmd_buffer_emit_depth_viewport(struct anv_cmd_buffer *cmd_buffer, bool depth_clamp_enable) { - uint32_t count = cmd_buffer->state.dynamic.viewport.count; - const VkViewport *viewports = cmd_buffer->state.dynamic.viewport.viewports; + uint32_t count = cmd_buffer->state.gfx.dynamic.viewport.count; + const VkViewport *viewports = + cmd_buffer->state.gfx.dynamic.viewport.viewports; struct anv_state cc_state = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, count * 8, 32); @@ -382,7 +384,7 @@ void genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer) { struct anv_pipeline *pipeline = cmd_buffer->state.gfx.base.pipeline; - struct anv_dynamic_state *d = &cmd_buffer->state.dynamic; + struct anv_dynamic_state *d = &cmd_buffer->state.gfx.dynamic; if (cmd_buffer->state.gfx.dirty & (ANV_CMD_DIRTY_PIPELINE | ANV_CMD_DIRTY_DYNAMIC_LINE_WIDTH)) { |