kk: Remove primitive type from pipeline and rely on dynamic one

Signed-off-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39543>
This commit is contained in:
Aitor Camacho 2026-01-27 05:07:42 +09:00 committed by Marge Bot
parent 14d3fb5f1b
commit f08a542756
2 changed files with 0 additions and 4 deletions

View file

@ -960,8 +960,6 @@ gather_graphics_pipeline_create_info(
info.vs.topology = vk_primitive_topology_to_mtl_primitive_topology_class(
state->ia->primitive_topology);
info.vs.primitive_type = vk_primitive_topology_to_mtl_primitive_type(
state->ia->primitive_topology);
/* Render pass data */
const struct vk_render_pass_state *rp = state->rp;
@ -1347,7 +1345,6 @@ kk_cmd_bind_graphics_shader(struct kk_cmd_buffer *cmd,
if (stage != MESA_SHADER_VERTEX)
return;
cmd->state.gfx.primitive_type = shader->info.vs.primitive_type;
cmd->state.gfx.pipeline_state = shader->pipeline.gfx.handle;
cmd->state.gfx.vb.attribs_read = shader->info.vs.attribs_read;

View file

@ -29,7 +29,6 @@ struct kk_shader_info {
/* Data needed to start render pass and bind pipeline. */
uint32_t attribs_read;
uint32_t sample_count;
enum mtl_primitive_type primitive_type;
/* Data needed for serialization. */
enum mtl_primitive_topology_class topology;