projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvmpipe: Reset the bin when shading a whole tile with an opaque shader.
[mesa.git]
/
src
/
gallium
/
drivers
/
softpipe
/
sp_state_rasterizer.c
diff --git
a/src/gallium/drivers/softpipe/sp_state_rasterizer.c
b/src/gallium/drivers/softpipe/sp_state_rasterizer.c
index 87b72196838f6865df06890f0ca3dd6639160b2d..a5b00336d44d9d6660244beab73110ea9d1ddcdf 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_state_rasterizer.c
+++ b/
src/gallium/drivers/softpipe/sp_state_rasterizer.c
@@
-41,14
+41,17
@@
softpipe_create_rasterizer_state(struct pipe_context *pipe,
}
void softpipe_bind_rasterizer_state(struct pipe_context *pipe,
}
void softpipe_bind_rasterizer_state(struct pipe_context *pipe,
- void *
setup
)
+ void *
rasterizer
)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
{
struct softpipe_context *softpipe = softpipe_context(pipe);
+ if (softpipe->rasterizer == rasterizer)
+ return;
+
/* pass-through to draw module */
/* pass-through to draw module */
- draw_set_rasterizer_state(softpipe->draw,
setup
);
+ draw_set_rasterizer_state(softpipe->draw,
rasterizer
);
- softpipe->rasterizer =
(struct pipe_rasterizer_state *)setup
;
+ softpipe->rasterizer =
rasterizer
;
softpipe->dirty |= SP_NEW_RASTERIZER;
}
softpipe->dirty |= SP_NEW_RASTERIZER;
}