summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-10 00:14:56 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-10 00:36:08 -0700
commitb7219853af66085d859468e91606ae4ee5bae28e (patch)
tree8e48c1a896aa7a3ad6de69921d3c499af8cdad41 /src/gallium/drivers
parent9d9e0815be41fa72ff5df6752b02551b648b33b6 (diff)
r300-gallium: Fix a handful of compiler warnings.
Missing INLINE, missing declarations, extraneous definitions. The usual.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c13
-rw-r--r--src/gallium/drivers/r300/r300_emit.h4
-rw-r--r--src/gallium/drivers/r300/r300_state_inlines.h2
3 files changed, 17 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 1c4a7d9aa0..ad65832ab3 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -193,7 +193,6 @@ void r300_emit_fb_state(struct r300_context* r300,
void r300_emit_rs_state(struct r300_context* r300, struct r300_rs_state* rs)
{
- struct r300_screen* r300screen = r300_screen(r300->context.screen);
CS_LOCALS(r300);
BEGIN_CS(20);
@@ -313,6 +312,16 @@ void r300_emit_vertex_format_state(struct r300_context* r300)
END_CS;
}
+static void r300_flush_textures(struct r300_context* r300)
+{
+ CS_LOCALS(r300);
+
+ BEGIN_CS(4);
+ OUT_CS_REG(R300_TX_INVALTAGS, 0);
+ OUT_CS_REG(R300_TX_ENABLE, (1 << r300->texture_count) - 1);
+ END_CS;
+}
+
/* Emit all dirty state. */
void r300_emit_dirty_state(struct r300_context* r300)
{
@@ -374,6 +383,7 @@ void r300_emit_dirty_state(struct r300_context* r300)
r300_emit_sampler(r300, r300->sampler_states[i], i);
r300->dirty_state &= ~(R300_NEW_SAMPLER << i);
}
+ r300_flush_textures(r300);
}
}
@@ -388,6 +398,7 @@ void r300_emit_dirty_state(struct r300_context* r300)
r300_emit_texture(r300, r300->textures[i], i);
r300->dirty_state &= ~(R300_NEW_TEXTURE << i);
}
+ r300_flush_textures(r300);
}
}
diff --git a/src/gallium/drivers/r300/r300_emit.h b/src/gallium/drivers/r300/r300_emit.h
index f21ca33171..4aba1ee08c 100644
--- a/src/gallium/drivers/r300/r300_emit.h
+++ b/src/gallium/drivers/r300/r300_emit.h
@@ -49,9 +49,13 @@ void r300_emit_fb_state(struct r300_context* r300,
void r300_emit_rs_state(struct r300_context* r300, struct r300_rs_state* rs);
+void r300_emit_rs_block_state(struct r300_context* r300,
+ struct r300_rs_block* rs);
+
void r300_emit_scissor_state(struct r300_context* r300,
struct r300_scissor_state* scissor);
+void r300_emit_vertex_format_state(struct r300_context* r300);
/* Emit all dirty state. */
void r300_emit_dirty_state(struct r300_context* r300);
diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium/drivers/r300/r300_state_inlines.h
index cd3a4313f7..4b3183471a 100644
--- a/src/gallium/drivers/r300/r300_state_inlines.h
+++ b/src/gallium/drivers/r300/r300_state_inlines.h
@@ -344,7 +344,7 @@ static INLINE uint32_t r300_translate_gb_pipes(int pipe_count)
return 0;
}
-static uint32_t translate_vertex_data_type(int type) {
+static INLINE uint32_t translate_vertex_data_type(int type) {
switch (type) {
case EMIT_1F:
case EMIT_1F_PSIZE: