OSDN Git Service

i965: Make brw_clear_cache flag all the bits on both pipelines.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Feb 2016 00:16:00 +0000 (16:16 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 12 Feb 2016 06:53:19 +0000 (22:53 -0800)
commit76f6f59c6e26b1165d9885463b244dc4c88b61ef
tree90ace34b10ae84bf9d8c841e93eaad1f6d110806
parent61ceb36ead2e88cce4b4bac63793e94d343a3cc4
i965: Make brw_clear_cache flag all the bits on both pipelines.

Setting brw->ctx.NewDriverState and brw->ctx.NewGLState affects
the dirty bits for the current pipeline.  But, we need to flag
everything dirty on *both* pipelines, so that when we switch
back, we'll realize our programs are stale and re-upload them.

To accomplish this, flag the saved state for both pipelines.
Only one of them should matter, but this way we don't have to
check which we need to set.  It's harmless to set the other.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93790
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/drivers/dri/i965/brw_state_cache.c