svga: pass context to svga_tgsi_vgpu9_translate()
Will be used for upcoming change. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
615b37a0e2
commit
8d0d5dca5b
|
@ -90,7 +90,8 @@ translate_fragment_program(struct svga_context *svga,
|
|||
PIPE_SHADER_FRAGMENT);
|
||||
}
|
||||
else {
|
||||
return svga_tgsi_vgpu9_translate(&fs->base, key, PIPE_SHADER_FRAGMENT);
|
||||
return svga_tgsi_vgpu9_translate(svga, &fs->base, key,
|
||||
PIPE_SHADER_FRAGMENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,8 @@ translate_vertex_program(struct svga_context *svga,
|
|||
PIPE_SHADER_VERTEX);
|
||||
}
|
||||
else {
|
||||
return svga_tgsi_vgpu9_translate(&vs->base, key, PIPE_SHADER_VERTEX);
|
||||
return svga_tgsi_vgpu9_translate(svga, &vs->base, key,
|
||||
PIPE_SHADER_VERTEX);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -175,7 +175,8 @@ svga_shader_emit_header(struct svga_shader_emitter *emit)
|
|||
* it is, it will be copied to a hardware buffer for upload.
|
||||
*/
|
||||
struct svga_shader_variant *
|
||||
svga_tgsi_vgpu9_translate(const struct svga_shader *shader,
|
||||
svga_tgsi_vgpu9_translate(struct svga_context *svga,
|
||||
const struct svga_shader *shader,
|
||||
const struct svga_compile_key *key, unsigned unit)
|
||||
{
|
||||
struct svga_shader_variant *variant = NULL;
|
||||
|
|
|
@ -63,7 +63,8 @@ static inline void svga_generate_vdecl_semantics( unsigned idx,
|
|||
|
||||
|
||||
struct svga_shader_variant *
|
||||
svga_tgsi_vgpu9_translate(const struct svga_shader *shader,
|
||||
svga_tgsi_vgpu9_translate(struct svga_context *svga,
|
||||
const struct svga_shader *shader,
|
||||
const struct svga_compile_key *key, unsigned unit);
|
||||
|
||||
struct svga_shader_variant *
|
||||
|
|
Loading…
Reference in New Issue