python: Do not pass shader_state to util shader functions.

This commit is contained in:
michal
2009-03-16 06:48:25 +01:00
committed by Michal Krol
parent 38b074495a
commit 5494251890

View File

@@ -273,24 +273,19 @@ st_context_create(struct st_device *st_dev)
/* vertex shader */ /* vertex shader */
{ {
struct pipe_shader_state vert_shader;
const uint semantic_names[] = { TGSI_SEMANTIC_POSITION, const uint semantic_names[] = { TGSI_SEMANTIC_POSITION,
TGSI_SEMANTIC_GENERIC }; TGSI_SEMANTIC_GENERIC };
const uint semantic_indexes[] = { 0, 0 }; const uint semantic_indexes[] = { 0, 0 };
st_ctx->vs = util_make_vertex_passthrough_shader(st_ctx->pipe, st_ctx->vs = util_make_vertex_passthrough_shader(st_ctx->pipe,
2, 2,
semantic_names, semantic_names,
semantic_indexes, semantic_indexes);
&vert_shader);
cso_set_vertex_shader_handle(st_ctx->cso, st_ctx->vs); cso_set_vertex_shader_handle(st_ctx->cso, st_ctx->vs);
} }
/* fragment shader */ /* fragment shader */
{ {
struct pipe_shader_state frag_shader; st_ctx->fs = util_make_fragment_passthrough_shader(st_ctx->pipe);
st_ctx->fs = util_make_fragment_passthrough_shader(st_ctx->pipe,
&frag_shader);
cso_set_fragment_shader_handle(st_ctx->cso, st_ctx->fs); cso_set_fragment_shader_handle(st_ctx->cso, st_ctx->fs);
} }