Lines Matching refs:shader

50 svga_shader_type(unsigned shader)
54 assert(shader <= PIPE_SHADER_FRAGMENT);
55 return shader + 1;
60 * Check and emit one shader constant register.
61 * \param shader PIPE_SHADER_FRAGMENT or PIPE_SHADER_VERTEX
66 emit_const(struct svga_context *svga, unsigned shader, unsigned i,
71 assert(shader < PIPE_SHADER_TYPES);
74 if (memcmp(svga->state.hw_draw.cb[shader][i], value,
79 shader == PIPE_SHADER_VERTEX ? "VERT" : "FRAG",
88 svga_shader_type(shader),
94 memcpy(svga->state.hw_draw.cb[shader][i], value, 4 * sizeof(float));
102 * Check and emit a range of shader constant registers, trying to coalesce
103 * successive shader constant updates in a single command in order to save
108 unsigned shader,
133 * Ideally we should not have allowed the app to create a shader
142 if (memcmp(svga->state.hw_draw.cb[shader][offset + i],
150 shader == PIPE_SHADER_VERTEX ? "VERT" : "FRAG",
162 memcmp(svga->state.hw_draw.cb[shader][offset + j],
169 shader == PIPE_SHADER_VERTEX ? "VERT" : "FRAG",
185 svga_shader_type(shader),
195 memcpy(svga->state.hw_draw.cb[shader][offset + i],
210 * Emit all the constants in a constant buffer for a shader stage.
213 emit_consts(struct svga_context *svga, unsigned shader)
223 assert(shader < PIPE_SHADER_TYPES);
225 if (svga->curr.cb[shader] == NULL)
228 count = svga->curr.cb[shader]->width0 / (4 * sizeof(float));
231 svga->curr.cb[shader],
240 ret = emit_const_range( svga, shader, offset, count, data );
246 ret = emit_const( svga, shader, offset + i, data[i] );
271 /* The internally generated fragment shader for xor blending
279 result->shader->info.file_max[TGSI_FILE_CONSTANT] + 1;
341 offset = result->shader->info.file_max[TGSI_FILE_CONSTANT] + 1;