summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state_inlines.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-09-24 18:57:33 +1000
committerDave Airlie <[email protected]>2010-09-24 18:58:16 +1000
commit11cd1612a1f0f7225ccb22c1197074c57b46aa26 (patch)
treef736f5c866abfff1d35b1f2ca982125eb4c6da23 /src/gallium/drivers/r600/r600_state_inlines.h
parentefa111a6cbfe03318a0e0569d4c9205a16d56857 (diff)
r600g: fix polygon mode
this fixes glean'pointSprite test.
Diffstat (limited to 'src/gallium/drivers/r600/r600_state_inlines.h')
-rw-r--r--src/gallium/drivers/r600/r600_state_inlines.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h
index 3be5248cd30..a9e7619bf35 100644
--- a/src/gallium/drivers/r600/r600_state_inlines.h
+++ b/src/gallium/drivers/r600/r600_state_inlines.h
@@ -123,6 +123,18 @@ static INLINE uint32_t r600_translate_stencil_op(int s_op)
return 0;
}
+static INLINE uint32_t r600_translate_fill(uint32_t func)
+{
+ switch(func) {
+ case PIPE_POLYGON_MODE_FILL:
+ return 2;
+ case PIPE_POLYGON_MODE_LINE:
+ return 1;
+ case PIPE_POLYGON_MODE_POINT:
+ return 0;
+ }
+}
+
/* translates straight */
static INLINE uint32_t r600_translate_ds_func(int func)
{