1 /* $XFree86: xc/lib/GL/mesa/src/drv/r200/r200_tcl.c,v 1.2 2002/12/16 16:18:55 dawes Exp $ */
3 Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
5 The Weather Channel (TM) funded Tungsten Graphics to develop the
6 initial release of the Radeon 8500 driver under the XFree86 license.
7 This notice must be preserved.
9 Permission is hereby granted, free of charge, to any person obtaining
10 a copy of this software and associated documentation files (the
11 "Software"), to deal in the Software without restriction, including
12 without limitation the rights to use, copy, modify, merge, publish,
13 distribute, sublicense, and/or sell copies of the Software, and to
14 permit persons to whom the Software is furnished to do so, subject to
15 the following conditions:
17 The above copyright notice and this permission notice (including the
18 next paragraph) shall be included in all copies or substantial
19 portions of the Software.
21 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
25 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 **************************************************************************/
33 * Keith Whitwell <keith@tungstengraphics.com>
43 #include "array_cache/acache.h"
45 #include "tnl/t_pipeline.h"
47 #include "r200_context.h"
48 #include "r200_state.h"
49 #include "r200_ioctl.h"
52 #include "r200_swtcl.h"
53 #include "r200_maos.h"
59 #define HAVE_LINE_LOOP 0
60 #define HAVE_LINE_STRIPS 1
61 #define HAVE_TRIANGLES 1
62 #define HAVE_TRI_STRIPS 1
63 #define HAVE_TRI_STRIP_1 0
64 #define HAVE_TRI_FANS 1
66 #define HAVE_QUAD_STRIPS 1
67 #define HAVE_POLYGONS 1
71 #define HW_POINTS ((ctx->Point.PointSprite || \
72 ((ctx->_TriangleCaps & (DD_POINT_SIZE | DD_POINT_ATTEN)) && \
73 !(ctx->_TriangleCaps & (DD_POINT_SMOOTH)))) ? \
74 R200_VF_PRIM_POINT_SPRITES : R200_VF_PRIM_POINTS)
75 #define HW_LINES R200_VF_PRIM_LINES
76 #define HW_LINE_LOOP 0
77 #define HW_LINE_STRIP R200_VF_PRIM_LINE_STRIP
78 #define HW_TRIANGLES R200_VF_PRIM_TRIANGLES
79 #define HW_TRIANGLE_STRIP_0 R200_VF_PRIM_TRIANGLE_STRIP
80 #define HW_TRIANGLE_STRIP_1 0
81 #define HW_TRIANGLE_FAN R200_VF_PRIM_TRIANGLE_FAN
82 #define HW_QUADS R200_VF_PRIM_QUADS
83 #define HW_QUAD_STRIP R200_VF_PRIM_QUAD_STRIP
84 #define HW_POLYGON R200_VF_PRIM_POLYGON
87 static GLboolean discrete_prim
[0x10] = {
95 0, /* 7 tri_w_flags */
96 1, /* 8 rect list (unused) */
97 1, /* 9 3vert point */
99 0, /* b point sprite */
102 0, /* e quad strip */
107 #define LOCAL_VARS r200ContextPtr rmesa = R200_CONTEXT(ctx)
108 #define ELT_TYPE GLushort
110 #define ELT_INIT(prim, hw_prim) \
111 r200TclPrimitive( ctx, prim, hw_prim | R200_VF_PRIM_WALK_IND )
113 #define GET_MESA_ELTS() rmesa->tcl.Elts
116 /* Don't really know how many elts will fit in what's left of cmdbuf,
117 * as there is state to emit, etc:
120 /* Testing on isosurf shows a maximum around here. Don't know if it's
121 * the card or driver or kernel module that is causing the behaviour.
123 #define GET_MAX_HW_ELTS() 300
125 #define RESET_STIPPLE() do { \
126 R200_STATECHANGE( rmesa, lin ); \
127 r200EmitState( rmesa ); \
130 #define AUTO_STIPPLE( mode ) do { \
131 R200_STATECHANGE( rmesa, lin ); \
133 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] |= \
134 R200_LINE_PATTERN_AUTO_RESET; \
136 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] &= \
137 ~R200_LINE_PATTERN_AUTO_RESET; \
138 r200EmitState( rmesa ); \
142 #define ALLOC_ELTS(nr) r200AllocElts( rmesa, nr )
144 static GLushort
*r200AllocElts( r200ContextPtr rmesa
, GLuint nr
)
146 if (rmesa
->dma
.flush
== r200FlushElts
&&
147 rmesa
->store
.cmd_used
+ nr
*2 < R200_CMD_BUF_SZ
) {
149 GLushort
*dest
= (GLushort
*)(rmesa
->store
.cmd_buf
+
150 rmesa
->store
.cmd_used
);
152 rmesa
->store
.cmd_used
+= nr
*2;
157 if (rmesa
->dma
.flush
)
158 rmesa
->dma
.flush( rmesa
);
160 r200EnsureCmdBufSpace( rmesa
, AOS_BUFSZ(rmesa
->tcl
.nr_aos_components
) +
161 rmesa
->hw
.max_state_size
+ ELTS_BUFSZ(nr
) );
164 rmesa
->tcl
.aos_components
,
165 rmesa
->tcl
.nr_aos_components
, 0 );
167 return r200AllocEltsOpenEnded( rmesa
, rmesa
->tcl
.hw_primitive
, nr
);
172 #define CLOSE_ELTS() \
174 if (0) R200_NEWPRIM( rmesa ); \
179 /* TODO: Try to extend existing primitive if both are identical,
180 * discrete and there are no intervening state changes. (Somewhat
181 * duplicates changes to DrawArrays code)
183 static void r200EmitPrim( GLcontext
*ctx
,
189 r200ContextPtr rmesa
= R200_CONTEXT( ctx
);
190 r200TclPrimitive( ctx
, prim
, hwprim
);
192 r200EnsureCmdBufSpace( rmesa
, AOS_BUFSZ(rmesa
->tcl
.nr_aos_components
) +
193 rmesa
->hw
.max_state_size
+ VBUF_BUFSZ
);
196 rmesa
->tcl
.aos_components
,
197 rmesa
->tcl
.nr_aos_components
,
200 /* Why couldn't this packet have taken an offset param?
202 r200EmitVbufPrim( rmesa
,
203 rmesa
->tcl
.hw_primitive
,
207 #define EMIT_PRIM(ctx, prim, hwprim, start, count) do { \
208 r200EmitPrim( ctx, prim, hwprim, start, count ); \
209 (void) rmesa; } while (0)
211 /* Try & join small primitives
214 #define PREFER_DISCRETE_ELT_PRIM( NR, PRIM ) 0
216 #define PREFER_DISCRETE_ELT_PRIM( NR, PRIM ) \
219 rmesa->tcl.hw_primitive == (PRIM| \
220 R200_VF_TCL_OUTPUT_VTX_ENABLE| \
221 R200_VF_PRIM_WALK_IND)))
224 #ifdef MESA_BIG_ENDIAN
225 /* We could do without (most of) this ugliness if dest was always 32 bit word aligned... */
226 #define EMIT_ELT(dest, offset, x) do { \
227 int off = offset + ( ( (GLuint)dest & 0x2 ) >> 1 ); \
228 GLushort *des = (GLushort *)( (GLuint)dest & ~0x2 ); \
229 (des)[ off + 1 - 2 * ( off & 1 ) ] = (GLushort)(x); \
230 (void)rmesa; } while (0)
232 #define EMIT_ELT(dest, offset, x) do { \
233 (dest)[offset] = (GLushort) (x); \
234 (void)rmesa; } while (0)
237 #define EMIT_TWO_ELTS(dest, offset, x, y) *(GLuint *)((dest)+offset) = ((y)<<16)|(x);
241 #define TAG(x) tcl_##x
242 #include "tnl_dd/t_dd_dmatmp2.h"
244 /**********************************************************************/
245 /* External entrypoints */
246 /**********************************************************************/
248 void r200EmitPrimitive( GLcontext
*ctx
,
253 tcl_render_tab_verts
[flags
&PRIM_MODE_MASK
]( ctx
, first
, last
, flags
);
256 void r200EmitEltPrimitive( GLcontext
*ctx
,
261 tcl_render_tab_elts
[flags
&PRIM_MODE_MASK
]( ctx
, first
, last
, flags
);
264 void r200TclPrimitive( GLcontext
*ctx
,
268 r200ContextPtr rmesa
= R200_CONTEXT(ctx
);
269 GLuint newprim
= hw_prim
| R200_VF_TCL_OUTPUT_VTX_ENABLE
;
271 if (newprim
!= rmesa
->tcl
.hw_primitive
||
272 !discrete_prim
[hw_prim
&0xf]) {
273 /* need to disable perspective-correct texturing for point sprites */
274 if ((prim
& PRIM_MODE_MASK
) == GL_POINTS
&& ctx
->Point
.PointSprite
) {
275 if (rmesa
->hw
.set
.cmd
[SET_RE_CNTL
] & R200_PERSPECTIVE_ENABLE
) {
276 R200_STATECHANGE( rmesa
, set
);
277 rmesa
->hw
.set
.cmd
[SET_RE_CNTL
] &= ~R200_PERSPECTIVE_ENABLE
;
280 else if (!(rmesa
->hw
.set
.cmd
[SET_RE_CNTL
] & R200_PERSPECTIVE_ENABLE
)) {
281 R200_STATECHANGE( rmesa
, set
);
282 rmesa
->hw
.set
.cmd
[SET_RE_CNTL
] |= R200_PERSPECTIVE_ENABLE
;
284 R200_NEWPRIM( rmesa
);
285 rmesa
->tcl
.hw_primitive
= newprim
;
290 /**********************************************************************/
291 /* Fog blend factor computation for hw tcl */
292 /* same calculation used as in t_vb_fog.c */
293 /**********************************************************************/
295 #define FOG_EXP_TABLE_SIZE 256
296 #define FOG_MAX (10.0)
297 #define EXP_FOG_MAX .0006595
298 #define FOG_INCR (FOG_MAX/FOG_EXP_TABLE_SIZE)
299 static GLfloat exp_table
[FOG_EXP_TABLE_SIZE
];
302 #define NEG_EXP( result, narg ) \
304 GLfloat f = (GLfloat) (narg * (1.0/FOG_INCR)); \
305 GLint k = (GLint) f; \
306 if (k > FOG_EXP_TABLE_SIZE-2) \
307 result = (GLfloat) EXP_FOG_MAX; \
309 result = exp_table[k] + (f-k)*(exp_table[k+1]-exp_table[k]); \
312 #define NEG_EXP( result, narg ) \
314 result = exp(-narg); \
320 * Initialize the exp_table[] lookup table for approximating exp().
323 r200InitStaticFogData( void )
327 for ( ; i
< FOG_EXP_TABLE_SIZE
; i
++, f
+= FOG_INCR
) {
328 exp_table
[i
] = (GLfloat
) exp(-f
);
334 * Compute per-vertex fog blend factors from fog coordinates by
335 * evaluating the GL_LINEAR, GL_EXP or GL_EXP2 fog function.
336 * Fog coordinates are distances from the eye (typically between the
337 * near and far clip plane distances).
338 * Note the fog (eye Z) coords may be negative so we use ABS(z) below.
339 * Fog blend factors are in the range [0,1].
342 r200ComputeFogBlendFactor( GLcontext
*ctx
, GLfloat fogcoord
)
344 GLfloat end
= ctx
->Fog
.End
;
346 const GLfloat z
= FABSF(fogcoord
);
348 switch (ctx
->Fog
.Mode
) {
350 if (ctx
->Fog
.Start
== ctx
->Fog
.End
)
353 d
= 1.0F
/ (ctx
->Fog
.End
- ctx
->Fog
.Start
);
354 temp
= (end
- z
) * d
;
355 return CLAMP(temp
, 0.0F
, 1.0F
);
358 d
= ctx
->Fog
.Density
;
359 NEG_EXP( temp
, d
* z
);
363 d
= ctx
->Fog
.Density
*ctx
->Fog
.Density
;
364 NEG_EXP( temp
, d
* z
* z
);
368 _mesa_problem(ctx
, "Bad fog mode in make_fog_coord");
374 /**********************************************************************/
375 /* Render pipeline stage */
376 /**********************************************************************/
381 static GLboolean
r200_run_tcl_render( GLcontext
*ctx
,
382 struct tnl_pipeline_stage
*stage
)
384 r200ContextPtr rmesa
= R200_CONTEXT(ctx
);
385 TNLcontext
*tnl
= TNL_CONTEXT(ctx
);
386 struct vertex_buffer
*VB
= &tnl
->vb
;
387 GLuint inputs
= VERT_BIT_POS
| VERT_BIT_COLOR0
;
390 /* TODO: separate this from the swtnl pipeline
392 if (rmesa
->TclFallback
)
393 return GL_TRUE
; /* fallback to software t&l */
395 if (R200_DEBUG
& DEBUG_PRIMS
)
396 fprintf(stderr
, "%s\n", __FUNCTION__
);
403 if (rmesa
->NewGLState
)
404 r200ValidateState( ctx
);
406 if (!ctx
->VertexProgram
._Enabled
) {
407 /* NOTE: inputs != tnl->render_inputs - these are the untransformed
410 if (ctx
->Light
.Enabled
) {
411 inputs
|= VERT_BIT_NORMAL
;
414 if (ctx
->_TriangleCaps
& DD_SEPARATE_SPECULAR
) {
415 inputs
|= VERT_BIT_COLOR1
;
418 if ( (ctx
->Fog
.FogCoordinateSource
== GL_FOG_COORD
) && ctx
->Fog
.Enabled
) {
419 inputs
|= VERT_BIT_FOG
;
422 for (i
= 0 ; i
< ctx
->Const
.MaxTextureUnits
; i
++) {
423 if (ctx
->Texture
.Unit
[i
]._ReallyEnabled
) {
424 if (rmesa
->TexGenNeedNormals
[i
]) {
425 inputs
|= VERT_BIT_NORMAL
;
427 inputs
|= VERT_BIT_TEX(i
);
432 GLuint out_vtxfmt0
= 0;
433 GLuint out_vtxfmt1
= 0;
434 GLuint out_compsel
= 0;
435 GLuint vp_out
= rmesa
->curr_vp_hw
->mesa_program
.Base
.OutputsWritten
;
436 /* can't handle other inputs, generic attribs etc. currently - should never arrive here */
437 assert ((rmesa
->curr_vp_hw
->mesa_program
.Base
.InputsRead
&
438 ~(VERT_BIT_POS
| VERT_BIT_NORMAL
| VERT_BIT_COLOR0
| VERT_BIT_COLOR1
|
439 VERT_BIT_FOG
| VERT_BIT_TEX0
| VERT_BIT_TEX1
| VERT_BIT_TEX2
|
440 VERT_BIT_TEX3
| VERT_BIT_TEX4
| VERT_BIT_TEX5
)) == 0);
441 inputs
|= rmesa
->curr_vp_hw
->mesa_program
.Base
.InputsRead
;
442 /* FIXME: this is a mess. Not really sure how to set up TCL_OUTPUT_VTXFMT
443 in "undefined" cases (e.g. output needed later but not written by vertex program or vice versa)
444 - however misconfiguration here will almost certainly lock up the chip.
445 I think at the very least we need to enable tcl outputs which we write to. Maybe even need to
446 fix up a vertex program so an output needed later always gets written?
447 For now just set the compsel and output_vtxfmt to the outputs written.
448 However, for simplicity we assume always all 4 values are written which may not be correct
449 (but I don't know if it could lead to lockups). */
450 assert(vp_out
& (1 << VERT_RESULT_HPOS
));
451 out_vtxfmt0
= R200_VTX_XY
| R200_VTX_Z0
| R200_VTX_W0
;
452 /* FIXME: need to always enable color_0 otherwise doom3's shadow vp (?) will lock up (?) */
453 out_vtxfmt0
|= R200_VTX_FP_RGBA
<< R200_VTX_COLOR_0_SHIFT
;
454 out_compsel
= R200_OUTPUT_XYZW
;
455 if (vp_out
& (1 << VERT_RESULT_COL0
)) {
456 out_vtxfmt0
|= R200_VTX_FP_RGBA
<< R200_VTX_COLOR_0_SHIFT
;
457 out_compsel
|= R200_OUTPUT_COLOR_0
;
459 if (vp_out
& (1 << VERT_RESULT_COL1
)) {
460 out_vtxfmt0
|= R200_VTX_FP_RGBA
<< R200_VTX_COLOR_1_SHIFT
;
461 out_compsel
|= R200_OUTPUT_COLOR_1
;
463 /* FIXME: probably not everything is set up for fogc to work correctly */
464 if (vp_out
& (1 << VERT_RESULT_FOGC
)) {
465 out_vtxfmt0
|= R200_VTX_DISCRETE_FOG
;
466 out_compsel
|= R200_OUTPUT_DISCRETE_FOG
;
468 if (vp_out
& (1 << VERT_RESULT_PSIZ
)) {
469 out_vtxfmt0
|= R200_VTX_POINT_SIZE
;
470 out_compsel
|= R200_OUTPUT_PT_SIZE
;
472 for (i
= VERT_RESULT_TEX0
; i
< VERT_RESULT_TEX6
; i
++) {
473 if (vp_out
& (1 << i
)) {
474 out_vtxfmt1
|= 4 << ((i
- VERT_RESULT_TEX0
) * 3);
475 out_compsel
|= R200_OUTPUT_TEX_0
<< (i
- VERT_RESULT_TEX0
);
478 if ((rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_VTXFMT_0
] != out_vtxfmt0
) ||
479 (rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_VTXFMT_1
] != out_vtxfmt1
) ||
480 (rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_COMPSEL
] != out_compsel
)) {
481 R200_STATECHANGE( rmesa
, vtx
);
482 rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_VTXFMT_0
] = out_vtxfmt0
;
483 rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_VTXFMT_1
] = out_vtxfmt1
;
484 rmesa
->hw
.vtx
.cmd
[VTX_TCL_OUTPUT_COMPSEL
] = out_compsel
;
485 /* FIXME: should restore this when disabling vertex programs maybe? */
489 /* Do the actual work:
491 r200ReleaseArrays( ctx
, ~0 /* stage->changed_inputs */ );
492 r200EmitArrays( ctx
, inputs
);
494 rmesa
->tcl
.Elts
= VB
->Elts
;
496 for (i
= 0 ; i
< VB
->PrimitiveCount
; i
++)
498 GLuint prim
= VB
->Primitive
[i
].mode
;
499 GLuint start
= VB
->Primitive
[i
].start
;
500 GLuint length
= VB
->Primitive
[i
].count
;
506 r200EmitEltPrimitive( ctx
, start
, start
+length
, prim
);
508 r200EmitPrimitive( ctx
, start
, start
+length
, prim
);
511 return GL_FALSE
; /* finished the pipe */
516 /* Initial state for tcl stage.
518 const struct tnl_pipeline_stage _r200_tcl_stage
=
525 r200_run_tcl_render
/* run */
530 /**********************************************************************/
531 /* Validate state at pipeline start */
532 /**********************************************************************/
535 /*-----------------------------------------------------------------------
536 * Manage TCL fallbacks
540 static void transition_to_swtnl( GLcontext
*ctx
)
542 r200ContextPtr rmesa
= R200_CONTEXT(ctx
);
543 TNLcontext
*tnl
= TNL_CONTEXT(ctx
);
545 R200_NEWPRIM( rmesa
);
547 r200ChooseVertexState( ctx
);
548 r200ChooseRenderState( ctx
);
550 _mesa_validate_all_lighting_tables( ctx
);
552 tnl
->Driver
.NotifyMaterialChange
=
553 _mesa_validate_all_lighting_tables
;
555 r200ReleaseArrays( ctx
, ~0 );
557 /* Still using the D3D based hardware-rasterizer from the radeon;
558 * need to put the card into D3D mode to make it work:
560 R200_STATECHANGE( rmesa
, vap
);
561 rmesa
->hw
.vap
.cmd
[VAP_SE_VAP_CNTL
] &= ~(R200_VAP_TCL_ENABLE
|R200_VAP_PROG_VTX_SHADER_ENABLE
);
564 static void transition_to_hwtnl( GLcontext
*ctx
)
566 r200ContextPtr rmesa
= R200_CONTEXT(ctx
);
567 TNLcontext
*tnl
= TNL_CONTEXT(ctx
);
569 _tnl_need_projected_coords( ctx
, GL_FALSE
);
571 r200UpdateMaterial( ctx
);
573 tnl
->Driver
.NotifyMaterialChange
= r200UpdateMaterial
;
575 if ( rmesa
->dma
.flush
)
576 rmesa
->dma
.flush( rmesa
);
578 rmesa
->dma
.flush
= NULL
;
580 if (rmesa
->swtcl
.indexed_verts
.buf
)
581 r200ReleaseDmaRegion( rmesa
, &rmesa
->swtcl
.indexed_verts
,
584 R200_STATECHANGE( rmesa
, vap
);
585 rmesa
->hw
.vap
.cmd
[VAP_SE_VAP_CNTL
] |= R200_VAP_TCL_ENABLE
;
586 rmesa
->hw
.vap
.cmd
[VAP_SE_VAP_CNTL
] &= ~R200_VAP_FORCE_W_TO_ONE
;
588 if (ctx
->VertexProgram
._Enabled
) {
589 rmesa
->hw
.vap
.cmd
[VAP_SE_VAP_CNTL
] |= R200_VAP_PROG_VTX_SHADER_ENABLE
;
592 if ( ((rmesa
->hw
.ctx
.cmd
[CTX_PP_FOG_COLOR
] & R200_FOG_USE_MASK
)
593 == R200_FOG_USE_SPEC_ALPHA
) &&
594 (ctx
->Fog
.FogCoordinateSource
== GL_FOG_COORD
)) {
595 R200_STATECHANGE( rmesa
, ctx
);
596 rmesa
->hw
.ctx
.cmd
[CTX_PP_FOG_COLOR
] &= ~R200_FOG_USE_MASK
;
597 rmesa
->hw
.ctx
.cmd
[CTX_PP_FOG_COLOR
] |= R200_FOG_USE_VTX_FOG
;
600 R200_STATECHANGE( rmesa
, vte
);
601 rmesa
->hw
.vte
.cmd
[VTE_SE_VTE_CNTL
] &= ~(R200_VTX_XY_FMT
|R200_VTX_Z_FMT
);
602 rmesa
->hw
.vte
.cmd
[VTE_SE_VTE_CNTL
] |= R200_VTX_W0_FMT
;
604 if (R200_DEBUG
& DEBUG_FALLBACKS
)
605 fprintf(stderr
, "R200 end tcl fallback\n");
609 static char *fallbackStrings
[] = {
610 "Rasterization fallback",
611 "Unfilled triangles",
612 "Twosided lighting, differing materials",
613 "Materials in VB (maybe between begin/end)",
626 static char *getFallbackString(GLuint bit
)
633 return fallbackStrings
[i
];
638 void r200TclFallback( GLcontext
*ctx
, GLuint bit
, GLboolean mode
)
640 r200ContextPtr rmesa
= R200_CONTEXT(ctx
);
641 GLuint oldfallback
= rmesa
->TclFallback
;
644 rmesa
->TclFallback
|= bit
;
645 if (oldfallback
== 0) {
646 if (R200_DEBUG
& DEBUG_FALLBACKS
)
647 fprintf(stderr
, "R200 begin tcl fallback %s\n",
648 getFallbackString( bit
));
649 transition_to_swtnl( ctx
);
653 rmesa
->TclFallback
&= ~bit
;
654 if (oldfallback
== bit
) {
655 if (R200_DEBUG
& DEBUG_FALLBACKS
)
656 fprintf(stderr
, "R200 end tcl fallback %s\n",
657 getFallbackString( bit
));
658 transition_to_hwtnl( ctx
);