projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svga: adapt to stencil ref changes
[mesa.git]
/
src
/
gallium
/
drivers
/
nv30
/
nv30_state_blend.c
diff --git
a/src/gallium/drivers/nv30/nv30_state_blend.c
b/src/gallium/drivers/nv30/nv30_state_blend.c
index 44d43e132a52fa6d294210f00b355050e7b83f57..c36d58c040cd8a1e4a194483fdb5346150168051 100644
(file)
--- a/
src/gallium/drivers/nv30/nv30_state_blend.c
+++ b/
src/gallium/drivers/nv30/nv30_state_blend.c
@@
-18,7
+18,7
@@
struct nv30_state_entry nv30_state_blend = {
static boolean
nv30_state_blend_colour_validate(struct nv30_context *nv30)
{
static boolean
nv30_state_blend_colour_validate(struct nv30_context *nv30)
{
- struct nouveau_stateobj *so = so_new(
2
, 0);
+ struct nouveau_stateobj *so = so_new(
1, 1
, 0);
struct pipe_blend_color *bcol = &nv30->blend_colour;
so_method(so, nv30->screen->rankine, NV34TCL_BLEND_COLOR, 1);
struct pipe_blend_color *bcol = &nv30->blend_colour;
so_method(so, nv30->screen->rankine, NV34TCL_BLEND_COLOR, 1);
@@
-28,6
+28,7
@@
nv30_state_blend_colour_validate(struct nv30_context *nv30)
(float_to_ubyte(bcol->color[2]) << 0)));
so_ref(so, &nv30->state.hw[NV30_STATE_BCOL]);
(float_to_ubyte(bcol->color[2]) << 0)));
so_ref(so, &nv30->state.hw[NV30_STATE_BCOL]);
+ so_ref(NULL, &so);
return TRUE;
}
return TRUE;
}