mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 20:58:04 +02:00
r300g: Use a dirty test to bring framerate back up.
This is just split out from the next commit, that's all.
This commit is contained in:
parent
51173e4e53
commit
11056ca86f
1 changed files with 5 additions and 2 deletions
|
|
@ -447,7 +447,7 @@ static void r300_update_rs_block(struct r300_context* r300,
|
|||
}
|
||||
|
||||
/* Update the vertex format. */
|
||||
static void r300_update_vertex_format(struct r300_context* r300)
|
||||
static void r300_update_derived_shader_state(struct r300_context* r300)
|
||||
{
|
||||
struct r300_shader_key* key;
|
||||
struct r300_vertex_format* vformat;
|
||||
|
|
@ -526,7 +526,10 @@ static void r300_update_ztop(struct r300_context* r300)
|
|||
|
||||
void r300_update_derived_state(struct r300_context* r300)
|
||||
{
|
||||
r300_update_vertex_format(r300);
|
||||
if (r300->dirty_state &
|
||||
(R300_NEW_FRAGMENT_SHADER | R300_NEW_VERTEX_SHADER)) {
|
||||
r300_update_derived_shader_state(r300);
|
||||
}
|
||||
|
||||
if (r300->dirty_state &
|
||||
(R300_NEW_DSA | R300_NEW_FRAGMENT_SHADER | R300_NEW_QUERY)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue