diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2015-08-20 22:41:22 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2015-08-24 13:45:41 -0700 |
commit | 3800573fb5390e84eebc2ebdbcd85f5736626f65 (patch) | |
tree | 0d3a45a9564bc2021a5560d80d95a692fe2eb142 /src/vulkan/gen8_state.c | |
parent | 615da3795a76e7f18e518d2c896613c3f9c04d27 (diff) |
vk: Move gen8 specific state into gen8 sub-structs
This commit moves all occurances of gen8 specific state into a gen8
substruct. This clearly identifies the state as gen8 specific and
prepares for adding gen7 state structs. In the process we also rename
the field names to exactly match the command or state packet name,
without the 3DSTATE prefix, eg:
3DSTATE_VF -> gen8.vf
3DSTATE_WM_DEPTH_STENCIL -> gen8.wm_depth_stencil
Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r-- | src/vulkan/gen8_state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 736a1d9455f..f035baabf74 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -49,7 +49,7 @@ VkResult gen8_CreateDynamicRasterState( .LineWidth = pCreateInfo->lineWidth, }; - GEN8_3DSTATE_SF_pack(NULL, state->state_sf, &sf); + GEN8_3DSTATE_SF_pack(NULL, state->gen8.sf, &sf); bool enable_bias = pCreateInfo->depthBias != 0.0f || pCreateInfo->slopeScaledDepthBias != 0.0f; @@ -62,7 +62,7 @@ VkResult gen8_CreateDynamicRasterState( .GlobalDepthOffsetClamp = pCreateInfo->depthBiasClamp }; - GEN8_3DSTATE_RASTER_pack(NULL, state->state_raster, &raster); + GEN8_3DSTATE_RASTER_pack(NULL, state->gen8.raster, &raster); *pState = anv_dynamic_rs_state_to_handle(state); @@ -506,7 +506,7 @@ VkResult gen8_CreateDynamicDepthStencilState( .BackfaceStencilWriteMask = pCreateInfo->stencilWriteMask & 0xff, }; - GEN8_3DSTATE_WM_DEPTH_STENCIL_pack(NULL, state->state_wm_depth_stencil, + GEN8_3DSTATE_WM_DEPTH_STENCIL_pack(NULL, state->gen8.wm_depth_stencil, &wm_depth_stencil); struct GEN8_COLOR_CALC_STATE color_calc_state = { @@ -514,7 +514,7 @@ VkResult gen8_CreateDynamicDepthStencilState( .BackFaceStencilReferenceValue = pCreateInfo->stencilBackRef }; - GEN8_COLOR_CALC_STATE_pack(NULL, state->state_color_calc, &color_calc_state); + GEN8_COLOR_CALC_STATE_pack(NULL, state->gen8.color_calc_state, &color_calc_state); *pState = anv_dynamic_ds_state_to_handle(state); |