projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glsl_to_tgsi: use swizzle_for_size for src reg in conditional moves
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_atom_stipple.c
diff --git
a/src/mesa/state_tracker/st_atom_stipple.c
b/src/mesa/state_tracker/st_atom_stipple.c
index 31e124b32935a4d20bd6f02fd7b27e4afe6eb9e6..b3e0dc7f1b085486dfe54b97a558d8a70d4dbcb0 100644
(file)
--- a/
src/mesa/state_tracker/st_atom_stipple.c
+++ b/
src/mesa/state_tracker/st_atom_stipple.c
@@
-33,6
+33,8
@@
*/
*/
+#include <assert.h>
+
#include "st_context.h"
#include "st_atom.h"
#include "pipe/p_context.h"
#include "st_context.h"
#include "st_atom.h"
#include "pipe/p_context.h"
@@
-62,17
+64,18
@@
invert_stipple(GLuint dest[32], const GLuint src[32], GLuint winHeight)
static void
update_stipple( struct st_context *st )
{
static void
update_stipple( struct st_context *st )
{
+ const struct gl_context *ctx = st->ctx;
const GLuint sz = sizeof(st->state.poly_stipple);
const GLuint sz = sizeof(st->state.poly_stipple);
- assert(sz == sizeof(
st->
ctx->PolygonStipple));
+ assert(sz == sizeof(ctx->PolygonStipple));
- if (memcmp(st->state.poly_stipple,
st->
ctx->PolygonStipple, sz)) {
+ if (memcmp(st->state.poly_stipple, ctx->PolygonStipple, sz)) {
/* state has changed */
struct pipe_poly_stipple newStipple;
/* state has changed */
struct pipe_poly_stipple newStipple;
- memcpy(st->state.poly_stipple,
st->
ctx->PolygonStipple, sz);
+ memcpy(st->state.poly_stipple, ctx->PolygonStipple, sz);
- invert_stipple(newStipple.stipple,
st->
ctx->PolygonStipple,
-
st->
ctx->DrawBuffer->Height);
+ invert_stipple(newStipple.stipple, ctx->PolygonStipple,
+ ctx->DrawBuffer->Height);
st->pipe->set_polygon_stipple(st->pipe, &newStipple);
}
st->pipe->set_polygon_stipple(st->pipe, &newStipple);
}