mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
radv/meta: simplify initializing DCC comp-to-single pipelines
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30640>
This commit is contained in:
parent
9c591d0c27
commit
eabbd077cc
1 changed files with 5 additions and 8 deletions
|
|
@ -1010,14 +1010,11 @@ create_dcc_comp_to_single_pipeline(struct radv_device *device, bool is_msaa, VkP
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkResult
|
static VkResult
|
||||||
init_meta_clear_dcc_comp_to_single_state(struct radv_device *device, bool on_demand)
|
init_meta_clear_dcc_comp_to_single_state(struct radv_device *device)
|
||||||
{
|
{
|
||||||
struct radv_meta_state *state = &device->meta_state;
|
struct radv_meta_state *state = &device->meta_state;
|
||||||
VkResult result;
|
VkResult result;
|
||||||
|
|
||||||
if (on_demand)
|
|
||||||
return VK_SUCCESS;
|
|
||||||
|
|
||||||
for (uint32_t i = 0; i < 2; i++) {
|
for (uint32_t i = 0; i < 2; i++) {
|
||||||
result = create_dcc_comp_to_single_pipeline(device, !!i, &state->clear_dcc_comp_to_single_pipeline[i]);
|
result = create_dcc_comp_to_single_pipeline(device, !!i, &state->clear_dcc_comp_to_single_pipeline[i]);
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
|
|
@ -1033,13 +1030,13 @@ radv_device_init_meta_clear_state(struct radv_device *device, bool on_demand)
|
||||||
VkResult res;
|
VkResult res;
|
||||||
struct radv_meta_state *state = &device->meta_state;
|
struct radv_meta_state *state = &device->meta_state;
|
||||||
|
|
||||||
res = init_meta_clear_dcc_comp_to_single_state(device, on_demand);
|
|
||||||
if (res != VK_SUCCESS)
|
|
||||||
return res;
|
|
||||||
|
|
||||||
if (on_demand)
|
if (on_demand)
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
|
|
||||||
|
res = init_meta_clear_dcc_comp_to_single_state(device);
|
||||||
|
if (res != VK_SUCCESS)
|
||||||
|
return res;
|
||||||
|
|
||||||
res = create_clear_htile_mask_pipeline(device);
|
res = create_clear_htile_mask_pipeline(device);
|
||||||
if (res != VK_SUCCESS)
|
if (res != VK_SUCCESS)
|
||||||
return res;
|
return res;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue