gallium: added const qualifiers on some draw funcs
This commit is contained in:
@@ -288,7 +288,7 @@ draw_enable_point_sprites(struct draw_context *draw, boolean enable)
|
||||
* work for the drivers.
|
||||
*/
|
||||
int
|
||||
draw_find_vs_output(struct draw_context *draw,
|
||||
draw_find_vs_output(const struct draw_context *draw,
|
||||
uint semantic_name, uint semantic_index)
|
||||
{
|
||||
const struct draw_vertex_shader *vs = draw->vs.vertex_shader;
|
||||
@@ -314,7 +314,7 @@ draw_find_vs_output(struct draw_context *draw,
|
||||
* Return number of vertex shader outputs.
|
||||
*/
|
||||
uint
|
||||
draw_num_vs_outputs(struct draw_context *draw)
|
||||
draw_num_vs_outputs(const struct draw_context *draw)
|
||||
{
|
||||
uint count = draw->vs.vertex_shader->info.num_outputs;
|
||||
if (draw->extra_vp_outputs.slot > 0)
|
||||
|
@@ -84,11 +84,11 @@ draw_install_pstipple_stage(struct draw_context *draw, struct pipe_context *pipe
|
||||
|
||||
|
||||
int
|
||||
draw_find_vs_output(struct draw_context *draw,
|
||||
draw_find_vs_output(const struct draw_context *draw,
|
||||
uint semantic_name, uint semantic_index);
|
||||
|
||||
uint
|
||||
draw_num_vs_outputs(struct draw_context *draw);
|
||||
draw_num_vs_outputs(const struct draw_context *draw);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user