static void r600_fallback(GLcontext *ctx, GLuint bit, GLboolean mode)
{
- r600ContextPtr r600 = R600_CONTEXT(ctx);
+ context_t *context = R700_CONTEXT(ctx);
if (mode)
- r600->radeon.Fallback |= bit;
+ context->radeon.Fallback |= bit;
else
- r600->radeon.Fallback &= ~bit;
+ context->radeon.Fallback &= ~bit;
}
static void r600_init_vtbl(radeonContextPtr radeon)
__DRIscreenPrivate *sPriv = driContextPriv->driScreenPriv;
radeonScreenPtr screen = (radeonScreenPtr) (sPriv->private);
struct dd_function_table functions;
- r600ContextPtr r600;
+ context_t *r600;
GLcontext *ctx;
int tcl_mode;
assert(screen);
/* Allocate the R600 context */
- r600 = (r600ContextPtr) CALLOC(sizeof(*r600));
+ r600 = (context_t*) CALLOC(sizeof(*r600));
if (!r600)
return GL_FALSE;
_tnl_allow_vertex_fog(ctx, GL_TRUE);
/* currently bogus data */
- if (screen->chip_flags & RADEON_CHIPSET_TCL) {
- ctx->Const.VertexProgram.MaxInstructions = VSF_MAX_FRAGMENT_LENGTH / 4;
- ctx->Const.VertexProgram.MaxNativeInstructions =
- VSF_MAX_FRAGMENT_LENGTH / 4;
- ctx->Const.VertexProgram.MaxNativeAttribs = 16; /* r420 */
- ctx->Const.VertexProgram.MaxTemps = 32;
- ctx->Const.VertexProgram.MaxNativeTemps =
- /*VSF_MAX_FRAGMENT_TEMPS */ 32;
- ctx->Const.VertexProgram.MaxNativeParameters = 256; /* r420 */
- ctx->Const.VertexProgram.MaxNativeAddressRegs = 1;
- }
+ ctx->Const.VertexProgram.MaxInstructions = VSF_MAX_FRAGMENT_LENGTH / 4;
+ ctx->Const.VertexProgram.MaxNativeInstructions =
+ VSF_MAX_FRAGMENT_LENGTH / 4;
+ ctx->Const.VertexProgram.MaxNativeAttribs = 16; /* r420 */
+ ctx->Const.VertexProgram.MaxTemps = 32;
+ ctx->Const.VertexProgram.MaxNativeTemps =
+ /*VSF_MAX_FRAGMENT_TEMPS */ 32;
+ ctx->Const.VertexProgram.MaxNativeParameters = 256; /* r420 */
+ ctx->Const.VertexProgram.MaxNativeAddressRegs = 1;
ctx->Const.FragmentProgram.MaxNativeTemps = PFS_NUM_TEMP_REGS;
ctx->Const.FragmentProgram.MaxNativeAttribs = 11; /* copy i915... */
#include "main/colormac.h"
struct r600_context;
-typedef struct r600_context r600ContextRec;
-typedef struct r600_context *r600ContextPtr;
-
typedef struct r600_context context_t;
#include "main/mm.h"
#define R600_FALLBACK_TCL 1
#define R600_FALLBACK_RAST 2
-/* r600_swtcl.c
- */
-struct r600_swtcl_info {
- /*
- * Offset of the 4UB color data within a hardware (swtcl) vertex.
- */
- GLuint coloroffset;
-
- /**
- * Offset of the 3UB specular color data within a hardware (swtcl) vertex.
- */
- GLuint specoffset;
-
- struct vertex_attribute{
- GLuint attr;
- GLubyte format;
- GLubyte dst_loc;
- GLuint swizzle;
- GLubyte write_mask;
- } vert_attrs[VERT_ATTRIB_MAX];
-
- GLubyte vertex_attr_count;
-};
-
enum
{
NO_SHIFT = 0,
GLboolean disable_lowimpact_fallback;
- struct r600_swtcl_info swtcl;
GLboolean vap_flush_needed;
};
-#define R600_CONTEXT(ctx) ((r600ContextPtr)(ctx->DriverCtx))
#define R700_CONTEXT(ctx) ((context_t *)(ctx->DriverCtx))
#define GL_CONTEXT(context) ((GLcontext *)(context->radeon.glCtx))