summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-10-08 21:03:27 -0600
committerBrian Paul <brianp@vmware.com>2015-10-16 11:43:28 -0600
commit8d0d5dca5bd076ef363d3e923e6473916f3a9d35 (patch)
tree827ddb1069f7d33d341d89830d86add864a75e8c
parent615b37a0e260ad8bd108a3e57a2a6f0eb6284246 (diff)
downloadexternal_mesa3d-8d0d5dca5bd076ef363d3e923e6473916f3a9d35.zip
external_mesa3d-8d0d5dca5bd076ef363d3e923e6473916f3a9d35.tar.gz
external_mesa3d-8d0d5dca5bd076ef363d3e923e6473916f3a9d35.tar.bz2
svga: pass context to svga_tgsi_vgpu9_translate()
Will be used for upcoming change. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
-rw-r--r--src/gallium/drivers/svga/svga_state_fs.c3
-rw-r--r--src/gallium/drivers/svga/svga_state_vs.c3
-rw-r--r--src/gallium/drivers/svga/svga_tgsi.c3
-rw-r--r--src/gallium/drivers/svga/svga_tgsi.h3
4 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_state_fs.c b/src/gallium/drivers/svga/svga_state_fs.c
index c244d53..e392778 100644
--- a/src/gallium/drivers/svga/svga_state_fs.c
+++ b/src/gallium/drivers/svga/svga_state_fs.c
@@ -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);
}
}
diff --git a/src/gallium/drivers/svga/svga_state_vs.c b/src/gallium/drivers/svga/svga_state_vs.c
index a846b77..24574c1 100644
--- a/src/gallium/drivers/svga/svga_state_vs.c
+++ b/src/gallium/drivers/svga/svga_state_vs.c
@@ -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);
}
}
diff --git a/src/gallium/drivers/svga/svga_tgsi.c b/src/gallium/drivers/svga/svga_tgsi.c
index 9a6fb46..a047570 100644
--- a/src/gallium/drivers/svga/svga_tgsi.c
+++ b/src/gallium/drivers/svga/svga_tgsi.c
@@ -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;
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h
index 207a3f0..2581135 100644
--- a/src/gallium/drivers/svga/svga_tgsi.h
+++ b/src/gallium/drivers/svga/svga_tgsi.h
@@ -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 *