diff options
author | Marek Olšák <[email protected]> | 2010-12-03 08:01:19 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-12-03 20:34:56 +0100 |
commit | 536d52702034a03d94866cb6cf8fc05502860320 (patch) | |
tree | b8416435fe70570328a5554f37b70e4d89bf0cd2 /src/gallium/drivers/r300/r300_emit.c | |
parent | edda44e0dc72302afa04a767772d5d97ab9d9aa6 (diff) |
r300g: add capability bit index_bias_supported
.. instead of calling r500_index_bias_supported(..) every draw call.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 31c7b38adfb..2b137271749 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -1260,7 +1260,7 @@ unsigned r300_get_num_cs_end_dwords(struct r300_context *r300) /* Emitted in flush. */ dwords += 26; /* emit_query_end */ dwords += r300->hyperz_state.size + 2; /* emit_hyperz_end + zcache flush */ - if (r500_index_bias_supported(r300)) + if (r300->screen->caps.index_bias_supported) dwords += 2; return dwords; |