/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/ |
D | r200_cmdbuf.c | 55 void r200SetUpAtomList( r200ContextPtr rmesa ) in r200SetUpAtomList() argument 59 mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in r200SetUpAtomList() 61 make_empty_list(&rmesa->radeon.hw.atomlist); in r200SetUpAtomList() 62 rmesa->radeon.hw.atomlist.name = "atom-list"; in r200SetUpAtomList() 64 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.ctx ); in r200SetUpAtomList() 65 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.set ); in r200SetUpAtomList() 66 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.lin ); in r200SetUpAtomList() 67 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.msk ); in r200SetUpAtomList() 68 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vpt ); in r200SetUpAtomList() 69 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vtx ); in r200SetUpAtomList() [all …]
|
D | r200_state_init.c | 166 static int cmdpkt( r200ContextPtr rmesa, int id ) in cmdpkt() argument 224 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 225 (void) rmesa; \ 232 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 233 …return (!rmesa->radeon.TclFallback && !ctx->VertexProgram._Enabled && (FLAG)) ? atom->cmd_size + (… 239 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 240 return (!rmesa->radeon.TclFallback && (FLAG)) ? atom->cmd_size + (ADD) : 0; \ 246 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 248 …return (!rmesa->radeon.TclFallback && ctx->VertexProgram._Enabled && (FLAG)) ? atom->cmd_size + (A… 257 …CHECK( texenv, (rmesa->state.envneeded & (1 << (atom->idx)) && !ctx->ATIFragmentShader._Enabled), … [all …]
|
D | r200_state.c | 69 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200AlphaFunc() local 70 int pp_misc = rmesa->hw.ctx.cmd[CTX_PP_MISC]; in r200AlphaFunc() 75 R200_STATECHANGE( rmesa, ctx ); in r200AlphaFunc() 107 rmesa->hw.ctx.cmd[CTX_PP_MISC] = pp_misc; in r200AlphaFunc() 113 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200BlendColor() local 114 R200_STATECHANGE( rmesa, ctx ); in r200BlendColor() 119 …rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCOLOR] = radeonPackColor( 4, color[0], color[1], color[2], color[3… in r200BlendColor() 204 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200_set_blend_state() local 205 GLuint cntl = rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] & in r200_set_blend_state() 215 R200_STATECHANGE( rmesa, ctx ); in r200_set_blend_state() [all …]
|
D | radeon_dma.c | 140 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vector() local 144 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * 4, 32); in rcommon_emit_vector() 148 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vector() 175 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vecfog() local 182 radeonAllocDmaRegion( rmesa, &aos->bo, &aos->offset, size * 4, 32 ); in rcommon_emit_vecfog() 186 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vecfog() 204 void radeon_init_dma(radeonContextPtr rmesa) in radeon_init_dma() argument 206 make_empty_list(&rmesa->dma.free); in radeon_init_dma() 207 make_empty_list(&rmesa->dma.wait); in radeon_init_dma() 208 make_empty_list(&rmesa->dma.reserved); in radeon_init_dma() [all …]
|
D | r200_tcl.c | 105 #define LOCAL_VARS r200ContextPtr rmesa = R200_CONTEXT(ctx) 124 R200_STATECHANGE( rmesa, lin ); \ 125 radeonEmitState(&rmesa->radeon); \ 129 R200_STATECHANGE( rmesa, lin ); \ 131 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] |= \ 134 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] &= \ 136 radeonEmitState(&rmesa->radeon); \ 140 #define ALLOC_ELTS(nr) r200AllocElts( rmesa, nr ) 142 static GLushort *r200AllocElts( r200ContextPtr rmesa, GLuint nr ) in r200AllocElts() argument 144 if (rmesa->radeon.dma.flush == r200FlushElts && in r200AllocElts() [all …]
|
D | r200_swtcl.c | 64 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \ 65 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \ 66 rmesa->radeon.swtcl.vertex_attr_count++; \ 72 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \ 73 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \ 74 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \ 75 rmesa->radeon.swtcl.vertex_attr_count++; \ 80 r200ContextPtr rmesa = R200_CONTEXT( ctx ); in r200SetVertexFormat() local 98 rmesa->radeon.swtcl.vertex_attr_count = 0; in r200SetVertexFormat() 103 if ( !rmesa->swtcl.needproj || in r200SetVertexFormat() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | r200_cmdbuf.c | 55 void r200SetUpAtomList( r200ContextPtr rmesa ) in r200SetUpAtomList() argument 59 mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in r200SetUpAtomList() 61 make_empty_list(&rmesa->radeon.hw.atomlist); in r200SetUpAtomList() 62 rmesa->radeon.hw.atomlist.name = "atom-list"; in r200SetUpAtomList() 64 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.ctx ); in r200SetUpAtomList() 65 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.set ); in r200SetUpAtomList() 66 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.lin ); in r200SetUpAtomList() 67 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.msk ); in r200SetUpAtomList() 68 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vpt ); in r200SetUpAtomList() 69 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.vtx ); in r200SetUpAtomList() [all …]
|
D | r200_state_init.c | 166 static int cmdpkt( r200ContextPtr rmesa, int id ) in cmdpkt() argument 224 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 225 (void) rmesa; \ 232 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 233 …return (!rmesa->radeon.TclFallback && !ctx->VertexProgram._Enabled && (FLAG)) ? atom->cmd_size + (… 239 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 240 return (!rmesa->radeon.TclFallback && (FLAG)) ? atom->cmd_size + (ADD) : 0; \ 246 r200ContextPtr rmesa = R200_CONTEXT(ctx); \ 248 …return (!rmesa->radeon.TclFallback && ctx->VertexProgram._Enabled && (FLAG)) ? atom->cmd_size + (A… 257 …CHECK( texenv, (rmesa->state.envneeded & (1 << (atom->idx)) && !ctx->ATIFragmentShader._Enabled), … [all …]
|
D | r200_state.c | 69 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200AlphaFunc() local 70 int pp_misc = rmesa->hw.ctx.cmd[CTX_PP_MISC]; in r200AlphaFunc() 75 R200_STATECHANGE( rmesa, ctx ); in r200AlphaFunc() 107 rmesa->hw.ctx.cmd[CTX_PP_MISC] = pp_misc; in r200AlphaFunc() 113 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200BlendColor() local 114 R200_STATECHANGE( rmesa, ctx ); in r200BlendColor() 119 …rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCOLOR] = radeonPackColor( 4, color[0], color[1], color[2], color[3… in r200BlendColor() 204 r200ContextPtr rmesa = R200_CONTEXT(ctx); in r200_set_blend_state() local 205 GLuint cntl = rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] & in r200_set_blend_state() 215 R200_STATECHANGE( rmesa, ctx ); in r200_set_blend_state() [all …]
|
D | radeon_dma.c | 140 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vector() local 144 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * 4, 32); in rcommon_emit_vector() 148 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vector() 175 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vecfog() local 182 radeonAllocDmaRegion( rmesa, &aos->bo, &aos->offset, size * 4, 32 ); in rcommon_emit_vecfog() 186 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vecfog() 204 void radeon_init_dma(radeonContextPtr rmesa) in radeon_init_dma() argument 206 make_empty_list(&rmesa->dma.free); in radeon_init_dma() 207 make_empty_list(&rmesa->dma.wait); in radeon_init_dma() 208 make_empty_list(&rmesa->dma.reserved); in radeon_init_dma() [all …]
|
D | r200_tcl.c | 105 #define LOCAL_VARS r200ContextPtr rmesa = R200_CONTEXT(ctx) 124 R200_STATECHANGE( rmesa, lin ); \ 125 radeonEmitState(&rmesa->radeon); \ 129 R200_STATECHANGE( rmesa, lin ); \ 131 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] |= \ 134 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] &= \ 136 radeonEmitState(&rmesa->radeon); \ 140 #define ALLOC_ELTS(nr) r200AllocElts( rmesa, nr ) 142 static GLushort *r200AllocElts( r200ContextPtr rmesa, GLuint nr ) in r200AllocElts() argument 144 if (rmesa->radeon.dma.flush == r200FlushElts && in r200AllocElts() [all …]
|
D | r200_swtcl.c | 64 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \ 65 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \ 66 rmesa->radeon.swtcl.vertex_attr_count++; \ 72 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \ 73 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \ 74 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \ 75 rmesa->radeon.swtcl.vertex_attr_count++; \ 80 r200ContextPtr rmesa = R200_CONTEXT( ctx ); in r200SetVertexFormat() local 98 rmesa->radeon.swtcl.vertex_attr_count = 0; in r200SetVertexFormat() 103 if ( !rmesa->swtcl.needproj || in r200SetVertexFormat() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_ioctl.c | 65 void radeonSetUpAtomList( r100ContextPtr rmesa ) in radeonSetUpAtomList() argument 67 int i, mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in radeonSetUpAtomList() 69 make_empty_list(&rmesa->radeon.hw.atomlist); in radeonSetUpAtomList() 70 rmesa->radeon.hw.atomlist.name = "atom-list"; in radeonSetUpAtomList() 72 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.ctx); in radeonSetUpAtomList() 73 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.set); in radeonSetUpAtomList() 74 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.lin); in radeonSetUpAtomList() 75 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.msk); in radeonSetUpAtomList() 76 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.vpt); in radeonSetUpAtomList() 77 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.tcl); in radeonSetUpAtomList() [all …]
|
D | radeon_state.c | 68 r100ContextPtr rmesa = R100_CONTEXT(ctx); in radeonAlphaFunc() local 69 int pp_misc = rmesa->hw.ctx.cmd[CTX_PP_MISC]; in radeonAlphaFunc() 74 RADEON_STATECHANGE( rmesa, ctx ); in radeonAlphaFunc() 106 rmesa->hw.ctx.cmd[CTX_PP_MISC] = pp_misc; in radeonAlphaFunc() 112 r100ContextPtr rmesa = R100_CONTEXT(ctx); in radeonBlendEquationSeparate() local 113 GLuint b = rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] & ~RADEON_COMB_FCN_MASK; in radeonBlendEquationSeparate() 136 FALLBACK( rmesa, RADEON_FALLBACK_BLEND_EQ, fallback ); in radeonBlendEquationSeparate() 138 RADEON_STATECHANGE( rmesa, ctx ); in radeonBlendEquationSeparate() 139 rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] = b; in radeonBlendEquationSeparate() 142 rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= RADEON_ROP_ENABLE; in radeonBlendEquationSeparate() [all …]
|
D | radeon_dma.c | 140 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vector() local 144 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * 4, 32); in rcommon_emit_vector() 148 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vector() 175 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vecfog() local 182 radeonAllocDmaRegion( rmesa, &aos->bo, &aos->offset, size * 4, 32 ); in rcommon_emit_vecfog() 186 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vecfog() 204 void radeon_init_dma(radeonContextPtr rmesa) in radeon_init_dma() argument 206 make_empty_list(&rmesa->dma.free); in radeon_init_dma() 207 make_empty_list(&rmesa->dma.wait); in radeon_init_dma() 208 make_empty_list(&rmesa->dma.reserved); in radeon_init_dma() [all …]
|
D | radeon_tcl.c | 108 #define LOCAL_VARS r100ContextPtr rmesa = R100_CONTEXT(ctx) 114 #define GET_MESA_ELTS() rmesa->tcl.Elts 128 RADEON_STATECHANGE( rmesa, lin ); \ 129 radeonEmitState(&rmesa->radeon); \ 133 RADEON_STATECHANGE( rmesa, lin ); \ 135 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] |= \ 138 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] &= \ 140 radeonEmitState(&rmesa->radeon); \ 145 #define ALLOC_ELTS(nr) radeonAllocElts( rmesa, nr ) 147 static GLushort *radeonAllocElts( r100ContextPtr rmesa, GLuint nr ) in radeonAllocElts() argument [all …]
|
D | radeon_swtcl.c | 69 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \ 70 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \ 71 rmesa->radeon.swtcl.vertex_attr_count++; \ 77 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \ 78 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \ 79 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \ 80 rmesa->radeon.swtcl.vertex_attr_count++; \ 92 r100ContextPtr rmesa = R100_CONTEXT( ctx ); in radeonSetVertexFormat() local 109 rmesa->radeon.swtcl.vertex_attr_count = 0; in radeonSetVertexFormat() 114 if ( !rmesa->swtcl.needproj || in radeonSetVertexFormat() [all …]
|
D | radeon_state_init.c | 161 static int cmdpkt( r100ContextPtr rmesa, int id ) in cmdpkt() argument 197 r100ContextPtr rmesa = R100_CONTEXT(ctx); \ 198 return (!rmesa->radeon.TclFallback && (FLAG)) ? atom->cmd_size + (ADD) : 0; \ 504 void radeonInitState( r100ContextPtr rmesa ) in radeonInitState() argument 506 struct gl_context *ctx = rmesa->radeon.glCtx; in radeonInitState() 509 rmesa->radeon.Fallback = 0; in radeonInitState() 512 rmesa->radeon.hw.max_state_size = 0; in radeonInitState() 516 rmesa->hw.ATOM.cmd_size = SZ; \ in radeonInitState() 517 rmesa->hw.ATOM.cmd = (GLuint *)CALLOC(SZ * sizeof(int)); \ in radeonInitState() 518 rmesa->hw.ATOM.lastcmd = (GLuint *)CALLOC(SZ * sizeof(int)); \ in radeonInitState() [all …]
|
D | radeon_context.c | 96 r100ContextPtr rmesa = (r100ContextPtr)radeon; in r100_get_lock() local 99 RADEON_STATECHANGE(rmesa, ctx); in r100_get_lock() 100 if (rmesa->radeon.sarea->tiling_enabled) { in r100_get_lock() 101 rmesa->hw.ctx.cmd[CTX_RB3D_COLORPITCH] |= in r100_get_lock() 104 rmesa->hw.ctx.cmd[CTX_RB3D_COLORPITCH] &= in r100_get_lock() 108 if (sarea->ctx_owner != rmesa->radeon.dri.hwContext) { in r100_get_lock() 109 sarea->ctx_owner = rmesa->radeon.dri.hwContext; in r100_get_lock() 113 static void r100_vtbl_emit_cs_header(struct radeon_cs *cs, radeonContextPtr rmesa) in r100_vtbl_emit_cs_header() argument 119 r100ContextPtr rmesa = (r100ContextPtr)radeon; in r100_vtbl_pre_emit_state() local 122 rmesa->hw.zbs.dirty = 1; in r100_vtbl_pre_emit_state() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
D | radeon_ioctl.c | 65 void radeonSetUpAtomList( r100ContextPtr rmesa ) in radeonSetUpAtomList() argument 67 int i, mtu = rmesa->radeon.glCtx->Const.MaxTextureUnits; in radeonSetUpAtomList() 69 make_empty_list(&rmesa->radeon.hw.atomlist); in radeonSetUpAtomList() 70 rmesa->radeon.hw.atomlist.name = "atom-list"; in radeonSetUpAtomList() 72 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.ctx); in radeonSetUpAtomList() 73 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.set); in radeonSetUpAtomList() 74 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.lin); in radeonSetUpAtomList() 75 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.msk); in radeonSetUpAtomList() 76 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.vpt); in radeonSetUpAtomList() 77 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.tcl); in radeonSetUpAtomList() [all …]
|
D | radeon_state.c | 68 r100ContextPtr rmesa = R100_CONTEXT(ctx); in radeonAlphaFunc() local 69 int pp_misc = rmesa->hw.ctx.cmd[CTX_PP_MISC]; in radeonAlphaFunc() 74 RADEON_STATECHANGE( rmesa, ctx ); in radeonAlphaFunc() 106 rmesa->hw.ctx.cmd[CTX_PP_MISC] = pp_misc; in radeonAlphaFunc() 112 r100ContextPtr rmesa = R100_CONTEXT(ctx); in radeonBlendEquationSeparate() local 113 GLuint b = rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] & ~RADEON_COMB_FCN_MASK; in radeonBlendEquationSeparate() 136 FALLBACK( rmesa, RADEON_FALLBACK_BLEND_EQ, fallback ); in radeonBlendEquationSeparate() 138 RADEON_STATECHANGE( rmesa, ctx ); in radeonBlendEquationSeparate() 139 rmesa->hw.ctx.cmd[CTX_RB3D_BLENDCNTL] = b; in radeonBlendEquationSeparate() 142 rmesa->hw.ctx.cmd[CTX_RB3D_CNTL] |= RADEON_ROP_ENABLE; in radeonBlendEquationSeparate() [all …]
|
D | radeon_dma.c | 140 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vector() local 144 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * 4, 32); in rcommon_emit_vector() 148 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vector() 175 radeonContextPtr rmesa = RADEON_CONTEXT(ctx); in rcommon_emit_vecfog() local 182 radeonAllocDmaRegion( rmesa, &aos->bo, &aos->offset, size * 4, 32 ); in rcommon_emit_vecfog() 186 radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32); in rcommon_emit_vecfog() 204 void radeon_init_dma(radeonContextPtr rmesa) in radeon_init_dma() argument 206 make_empty_list(&rmesa->dma.free); in radeon_init_dma() 207 make_empty_list(&rmesa->dma.wait); in radeon_init_dma() 208 make_empty_list(&rmesa->dma.reserved); in radeon_init_dma() [all …]
|
D | radeon_tcl.c | 108 #define LOCAL_VARS r100ContextPtr rmesa = R100_CONTEXT(ctx) 114 #define GET_MESA_ELTS() rmesa->tcl.Elts 128 RADEON_STATECHANGE( rmesa, lin ); \ 129 radeonEmitState(&rmesa->radeon); \ 133 RADEON_STATECHANGE( rmesa, lin ); \ 135 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] |= \ 138 rmesa->hw.lin.cmd[LIN_RE_LINE_PATTERN] &= \ 140 radeonEmitState(&rmesa->radeon); \ 145 #define ALLOC_ELTS(nr) radeonAllocElts( rmesa, nr ) 147 static GLushort *radeonAllocElts( r100ContextPtr rmesa, GLuint nr ) in radeonAllocElts() argument [all …]
|
D | radeon_swtcl.c | 69 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = (ATTR); \ 70 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = (STYLE); \ 71 rmesa->radeon.swtcl.vertex_attr_count++; \ 77 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].attrib = 0; \ 78 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].format = EMIT_PAD; \ 79 rmesa->radeon.swtcl.vertex_attrs[rmesa->radeon.swtcl.vertex_attr_count].offset = (N); \ 80 rmesa->radeon.swtcl.vertex_attr_count++; \ 92 r100ContextPtr rmesa = R100_CONTEXT( ctx ); in radeonSetVertexFormat() local 109 rmesa->radeon.swtcl.vertex_attr_count = 0; in radeonSetVertexFormat() 114 if ( !rmesa->swtcl.needproj || in radeonSetVertexFormat() [all …]
|
D | radeon_state_init.c | 161 static int cmdpkt( r100ContextPtr rmesa, int id ) in cmdpkt() argument 197 r100ContextPtr rmesa = R100_CONTEXT(ctx); \ 198 return (!rmesa->radeon.TclFallback && (FLAG)) ? atom->cmd_size + (ADD) : 0; \ 504 void radeonInitState( r100ContextPtr rmesa ) in radeonInitState() argument 506 struct gl_context *ctx = rmesa->radeon.glCtx; in radeonInitState() 509 rmesa->radeon.Fallback = 0; in radeonInitState() 512 rmesa->radeon.hw.max_state_size = 0; in radeonInitState() 516 rmesa->hw.ATOM.cmd_size = SZ; \ in radeonInitState() 517 rmesa->hw.ATOM.cmd = (GLuint *)CALLOC(SZ * sizeof(int)); \ in radeonInitState() 518 rmesa->hw.ATOM.lastcmd = (GLuint *)CALLOC(SZ * sizeof(int)); \ in radeonInitState() [all …]
|