mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 03:10:33 +01:00
gs: fix drivers so they work with geometry shaders
This commit is contained in:
parent
5aac920e49
commit
b0575151b6
3 changed files with 7 additions and 7 deletions
|
|
@ -116,13 +116,13 @@ llvmpipe_get_vertex_info(struct llvmpipe_context *llvmpipe)
|
|||
}
|
||||
|
||||
/* this includes texcoords and varying vars */
|
||||
src = draw_find_vs_output(llvmpipe->draw,
|
||||
src = draw_find_shader_output(llvmpipe->draw,
|
||||
lpfs->info.input_semantic_name[i],
|
||||
lpfs->info.input_semantic_index[i]);
|
||||
draw_emit_vertex_attr(vinfo, EMIT_4F, interp, src);
|
||||
}
|
||||
|
||||
llvmpipe->psize_slot = draw_find_vs_output(llvmpipe->draw,
|
||||
llvmpipe->psize_slot = draw_find_shader_output(llvmpipe->draw,
|
||||
TGSI_SEMANTIC_PSIZE, 0);
|
||||
if (llvmpipe->psize_slot > 0) {
|
||||
draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_CONSTANT,
|
||||
|
|
|
|||
|
|
@ -71,9 +71,9 @@ static void r300_draw_emit_attrib(struct r300_context* r300,
|
|||
struct tgsi_shader_info* info = &r300->vs->info;
|
||||
int output;
|
||||
|
||||
output = draw_find_vs_output(r300->draw,
|
||||
info->output_semantic_name[index],
|
||||
info->output_semantic_index[index]);
|
||||
output = draw_find_shader_output(r300->draw,
|
||||
info->output_semantic_name[index],
|
||||
info->output_semantic_index[index]);
|
||||
draw_emit_vertex_attr(&r300->vertex_info->vinfo, emit, interp, output);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ int svga_swtnl_update_vdecl( struct svga_context *svga )
|
|||
memset(vdecl, 0, sizeof(vdecl));
|
||||
|
||||
/* always add position */
|
||||
src = draw_find_vs_output(draw, TGSI_SEMANTIC_POSITION, 0);
|
||||
src = draw_find_shader_output(draw, TGSI_SEMANTIC_POSITION, 0);
|
||||
draw_emit_vertex_attr(vinfo, EMIT_4F, INTERP_LINEAR, src);
|
||||
vinfo->attrib[0].emit = EMIT_4F;
|
||||
vdecl[0].array.offset = offset;
|
||||
|
|
@ -169,7 +169,7 @@ int svga_swtnl_update_vdecl( struct svga_context *svga )
|
|||
for (i = 0; i < fs->base.info.num_inputs; i++) {
|
||||
unsigned name = fs->base.info.input_semantic_name[i];
|
||||
unsigned index = fs->base.info.input_semantic_index[i];
|
||||
src = draw_find_vs_output(draw, name, index);
|
||||
src = draw_find_shader_output(draw, name, index);
|
||||
vdecl[nr_decls].array.offset = offset;
|
||||
vdecl[nr_decls].identity.usageIndex = fs->base.info.input_semantic_index[i];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue