cmd->state.render_area.extent.height == 0)
return true;
- if (cmd->has_tess)
+ if (cmd->state.has_tess)
return true;
return false;
break;
}
- if (secondary->has_tess)
- cmd->has_tess = true;
+ if (secondary->state.has_tess)
+ cmd->state.has_tess = true;
} else {
assert(tu_cs_is_empty(&secondary->draw_cs));
assert(tu_cs_is_empty(&secondary->draw_epilogue_cs));
if (has_tess) {
uint64_t tess_factor_iova = 0;
- cmd->has_tess = true;
+ cmd->state.has_tess = true;
result = tu6_emit_tess_consts(cmd, draw_count, pipeline, &tess_consts, &tess_factor_iova);
if (result != VK_SUCCESS)
return result;
cmd_buffer->state.pass = NULL;
cmd_buffer->state.subpass = NULL;
cmd_buffer->state.framebuffer = NULL;
+ cmd_buffer->state.has_tess = false;
}
void
struct tu_cs_entry tile_store_ib;
bool xfb_used;
+ bool has_tess;
};
struct tu_cmd_pool
struct tu_cs draw_epilogue_cs;
struct tu_cs sub_cs;
- bool has_tess;
-
uint32_t vsc_draw_strm_pitch;
uint32_t vsc_prim_strm_pitch;
};