aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_render.c
diff options
context:
space:
mode:
authorVladimir Dergachev <[email protected]>2005-01-15 19:33:19 +0000
committerVladimir Dergachev <[email protected]>2005-01-15 19:33:19 +0000
commit76de160b642aa7eac41db05883a9c6b414d17cb5 (patch)
tree2848e3f49983528268af4a1483430faa8539257f /src/mesa/drivers/dri/r300/r300_render.c
parentb5f49e6f91664a82f2356d667eaa8504ba56b7c0 (diff)
On the way to getting stencil and texture formats working.
Looks like the matter of texture formats is a lot simpler, with the wrong display in quake explained by the fact that we are not handling texture combine modes.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_render.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_render.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c
index d069f3512c2..cdf972a46d9 100644
--- a/src/mesa/drivers/dri/r300/r300_render.c
+++ b/src/mesa/drivers/dri/r300/r300_render.c
@@ -293,6 +293,7 @@ static GLboolean r300_run_immediate_render(GLcontext *ctx,
R300_STATECHANGE(rmesa, vte);
#endif
+
/* Magic register - note it is right after 20b0 */
@@ -302,14 +303,25 @@ static GLboolean r300_run_immediate_render(GLcontext *ctx,
e32(0x0000000c);
}
-
+
r300EmitState(rmesa);
#if 0
reg_start(R300_RB3D_COLORMASK, 0);
e32(0xf);
+
+ vsf_start_fragment(0x406, 4);
+ efloat(0.0);
+ efloat(0.0);
+ efloat(0.0);
+ efloat(1.0);
+
+ vsf_start_fragment(0x400, 4);
+ efloat(0.0);
+ efloat(0.0);
+ efloat(0.0);
+ efloat(1.0);
#endif
- /* ----------------------------------- */
/* We need LOAD_VBPNTR to setup AOS_ATTR fields.. the offsets are irrelevant */
r300EmitLOAD_VBPNTR(rmesa, 0);