/external/mesa3d/src/mesa/swrast/ |
D | s_span.c | 64 _swrast_span_default_attribs(struct gl_context *ctx, SWspan *span) in _swrast_span_default_attribs() argument 71 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs() 75 span->z = (GLint)tmpf; in _swrast_span_default_attribs() 77 span->zStep = 0; in _swrast_span_default_attribs() 78 span->interpMask |= SPAN_Z; in _swrast_span_default_attribs() 82 span->attrStart[FRAG_ATTRIB_WPOS][3] = 1.0; in _swrast_span_default_attribs() 83 span->attrStepX[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs() 84 span->attrStepY[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs() 92 span->red = r; in _swrast_span_default_attribs() 93 span->green = g; in _swrast_span_default_attribs() [all …]
|
D | s_points.c | 86 SWspan span; in sprite_point() local 96 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point() 98 span.z = (GLuint) (vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point() 99 span.zStep = 0; in sprite_point() 104 INIT_SPAN(span, GL_POINT); in sprite_point() 105 span.interpMask = SPAN_Z | SPAN_RGBA; in sprite_point() 107 span.facing = swrast->PointLineFacing; in sprite_point() 109 span.red = ChanToFixed(vert->color[0]); in sprite_point() 110 span.green = ChanToFixed(vert->color[1]); in sprite_point() 111 span.blue = ChanToFixed(vert->color[2]); in sprite_point() [all …]
|
D | s_tritemp.h | 100 GLfixed endVal = span.CHANNEL + (LEN) * span.CHANNELSTEP; \ 102 span.CHANNEL -= endVal; \ 104 if (span.CHANNEL < 0) { \ 105 span.CHANNEL = 0; \ 142 SWspan span; in NAME() local 146 INIT_SPAN(span, GL_POLYGON); in NAME() 147 span.y = 0; /* silence warnings */ in NAME() 246 span.facing = oneOverArea * bf > 0.0F; in NAME() 334 span.interpMask |= SPAN_Z; in NAME() 338 … span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz); in NAME() [all …]
|
D | s_linetemp.h | 69 SWspan span; in NAME() local 225 span.red = ChanToFixed(vert0->color[0]); in NAME() 226 span.green = ChanToFixed(vert0->color[1]); in NAME() 227 span.blue = ChanToFixed(vert0->color[2]); in NAME() 228 span.alpha = ChanToFixed(vert0->color[3]); in NAME() 229 span.redStep = (ChanToFixed(vert1->color[0]) - span.red ) / numPixels; in NAME() 230 span.greenStep = (ChanToFixed(vert1->color[1]) - span.green) / numPixels; in NAME() 231 span.blueStep = (ChanToFixed(vert1->color[2]) - span.blue ) / numPixels; in NAME() 232 span.alphaStep = (ChanToFixed(vert1->color[3]) - span.alpha) / numPixels; in NAME() 235 span.red = ChanToFixed(vert1->color[0]); in NAME() [all …]
|
D | s_triangle.c | 82 span.interpMask |= SPAN_RGBA; \ 83 span.red = ChanToFixed(v2->color[0]); \ 84 span.green = ChanToFixed(v2->color[1]); \ 85 span.blue = ChanToFixed(v2->color[2]); \ 86 span.alpha = ChanToFixed(v2->color[3]); \ 87 span.redStep = 0; \ 88 span.greenStep = 0; \ 89 span.blueStep = 0; \ 90 span.alphaStep = 0; 91 #define RENDER_SPAN( span ) _swrast_write_rgba_span(ctx, &span); argument [all …]
|
D | s_bitmap.c | 56 SWspan span; in _swrast_Bitmap() local 72 INIT_SPAN(span, GL_BITMAP); in _swrast_Bitmap() 73 span.end = width; in _swrast_Bitmap() 74 span.arrayMask = SPAN_XY; in _swrast_Bitmap() 75 _swrast_span_default_attribs(ctx, &span); in _swrast_Bitmap() 86 span.array->x[count] = px + col; in _swrast_Bitmap() 87 span.array->y[count] = py + row; in _swrast_Bitmap() 108 span.array->x[count] = px + col; in _swrast_Bitmap() 109 span.array->y[count] = py + row; in _swrast_Bitmap() 128 span.end = count; in _swrast_Bitmap() [all …]
|
D | s_fog.c | 90 if (span->arrayAttribs & FRAG_BIT_FOGC) { \ 92 for (i = 0; i < span->end; i++) { \ 93 const GLfloat fogCoord = span->array->attribs[FRAG_ATTRIB_FOGC][i][0]; \ 105 const GLfloat fogStep = span->attrStepX[FRAG_ATTRIB_FOGC][0]; \ 106 GLfloat fogCoord = span->attrStart[FRAG_ATTRIB_FOGC][0]; \ 107 const GLfloat wStep = span->attrStepX[FRAG_ATTRIB_WPOS][3]; \ 108 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3]; \ 110 for (i = 0; i < span->end; i++) { \ 132 _swrast_fog_rgba_span( const struct gl_context *ctx, SWspan *span ) in _swrast_fog_rgba_span() argument 138 ASSERT(span->arrayMask & SPAN_RGBA); in _swrast_fog_rgba_span() [all …]
|
D | s_alpha.c | 93 _swrast_alpha_test(const struct gl_context *ctx, SWspan *span) in _swrast_alpha_test() argument 95 const GLuint n = span->end; in _swrast_alpha_test() 96 GLubyte *mask = span->array->mask; in _swrast_alpha_test() 107 span->writeAll = GL_FALSE; in _swrast_alpha_test() 111 if (span->arrayMask & SPAN_RGBA) { in _swrast_alpha_test() 113 if (span->array->ChanType == GL_UNSIGNED_BYTE) { in _swrast_alpha_test() 114 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_alpha_test() 119 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { in _swrast_alpha_test() 120 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_alpha_test() 126 GLfloat (*rgba)[4] = span->array->attribs[FRAG_ATTRIB_COL0]; in _swrast_alpha_test() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
D | s_span.c | 64 _swrast_span_default_attribs(struct gl_context *ctx, SWspan *span) in _swrast_span_default_attribs() argument 71 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs() 75 span->z = (GLint)tmpf; in _swrast_span_default_attribs() 77 span->zStep = 0; in _swrast_span_default_attribs() 78 span->interpMask |= SPAN_Z; in _swrast_span_default_attribs() 82 span->attrStart[FRAG_ATTRIB_WPOS][3] = 1.0; in _swrast_span_default_attribs() 83 span->attrStepX[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs() 84 span->attrStepY[FRAG_ATTRIB_WPOS][3] = 0.0; in _swrast_span_default_attribs() 92 span->red = r; in _swrast_span_default_attribs() 93 span->green = g; in _swrast_span_default_attribs() [all …]
|
D | s_points.c | 86 SWspan span; in sprite_point() local 96 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point() 98 span.z = (GLuint) (vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point() 99 span.zStep = 0; in sprite_point() 104 INIT_SPAN(span, GL_POINT); in sprite_point() 105 span.interpMask = SPAN_Z | SPAN_RGBA; in sprite_point() 107 span.facing = swrast->PointLineFacing; in sprite_point() 109 span.red = ChanToFixed(vert->color[0]); in sprite_point() 110 span.green = ChanToFixed(vert->color[1]); in sprite_point() 111 span.blue = ChanToFixed(vert->color[2]); in sprite_point() [all …]
|
D | s_tritemp.h | 100 GLfixed endVal = span.CHANNEL + (LEN) * span.CHANNELSTEP; \ 102 span.CHANNEL -= endVal; \ 104 if (span.CHANNEL < 0) { \ 105 span.CHANNEL = 0; \ 142 SWspan span; in NAME() local 146 INIT_SPAN(span, GL_POLYGON); in NAME() 147 span.y = 0; /* silence warnings */ in NAME() 246 span.facing = oneOverArea * bf > 0.0F; in NAME() 334 span.interpMask |= SPAN_Z; in NAME() 338 … span.attrStepX[FRAG_ATTRIB_WPOS][2] = oneOverArea * (eMaj_dz * eBot.dy - eMaj.dy * eBot_dz); in NAME() [all …]
|
D | s_linetemp.h | 69 SWspan span; in NAME() local 225 span.red = ChanToFixed(vert0->color[0]); in NAME() 226 span.green = ChanToFixed(vert0->color[1]); in NAME() 227 span.blue = ChanToFixed(vert0->color[2]); in NAME() 228 span.alpha = ChanToFixed(vert0->color[3]); in NAME() 229 span.redStep = (ChanToFixed(vert1->color[0]) - span.red ) / numPixels; in NAME() 230 span.greenStep = (ChanToFixed(vert1->color[1]) - span.green) / numPixels; in NAME() 231 span.blueStep = (ChanToFixed(vert1->color[2]) - span.blue ) / numPixels; in NAME() 232 span.alphaStep = (ChanToFixed(vert1->color[3]) - span.alpha) / numPixels; in NAME() 235 span.red = ChanToFixed(vert1->color[0]); in NAME() [all …]
|
D | s_triangle.c | 82 span.interpMask |= SPAN_RGBA; \ 83 span.red = ChanToFixed(v2->color[0]); \ 84 span.green = ChanToFixed(v2->color[1]); \ 85 span.blue = ChanToFixed(v2->color[2]); \ 86 span.alpha = ChanToFixed(v2->color[3]); \ 87 span.redStep = 0; \ 88 span.greenStep = 0; \ 89 span.blueStep = 0; \ 90 span.alphaStep = 0; 91 #define RENDER_SPAN( span ) _swrast_write_rgba_span(ctx, &span); argument [all …]
|
D | s_bitmap.c | 56 SWspan span; in _swrast_Bitmap() local 72 INIT_SPAN(span, GL_BITMAP); in _swrast_Bitmap() 73 span.end = width; in _swrast_Bitmap() 74 span.arrayMask = SPAN_XY; in _swrast_Bitmap() 75 _swrast_span_default_attribs(ctx, &span); in _swrast_Bitmap() 86 span.array->x[count] = px + col; in _swrast_Bitmap() 87 span.array->y[count] = py + row; in _swrast_Bitmap() 108 span.array->x[count] = px + col; in _swrast_Bitmap() 109 span.array->y[count] = py + row; in _swrast_Bitmap() 128 span.end = count; in _swrast_Bitmap() [all …]
|
D | s_fog.c | 90 if (span->arrayAttribs & FRAG_BIT_FOGC) { \ 92 for (i = 0; i < span->end; i++) { \ 93 const GLfloat fogCoord = span->array->attribs[FRAG_ATTRIB_FOGC][i][0]; \ 105 const GLfloat fogStep = span->attrStepX[FRAG_ATTRIB_FOGC][0]; \ 106 GLfloat fogCoord = span->attrStart[FRAG_ATTRIB_FOGC][0]; \ 107 const GLfloat wStep = span->attrStepX[FRAG_ATTRIB_WPOS][3]; \ 108 GLfloat w = span->attrStart[FRAG_ATTRIB_WPOS][3]; \ 110 for (i = 0; i < span->end; i++) { \ 132 _swrast_fog_rgba_span( const struct gl_context *ctx, SWspan *span ) in _swrast_fog_rgba_span() argument 138 ASSERT(span->arrayMask & SPAN_RGBA); in _swrast_fog_rgba_span() [all …]
|
D | s_alpha.c | 93 _swrast_alpha_test(const struct gl_context *ctx, SWspan *span) in _swrast_alpha_test() argument 95 const GLuint n = span->end; in _swrast_alpha_test() 96 GLubyte *mask = span->array->mask; in _swrast_alpha_test() 107 span->writeAll = GL_FALSE; in _swrast_alpha_test() 111 if (span->arrayMask & SPAN_RGBA) { in _swrast_alpha_test() 113 if (span->array->ChanType == GL_UNSIGNED_BYTE) { in _swrast_alpha_test() 114 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_alpha_test() 119 else if (span->array->ChanType == GL_UNSIGNED_SHORT) { in _swrast_alpha_test() 120 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_alpha_test() 126 GLfloat (*rgba)[4] = span->array->attribs[FRAG_ATTRIB_COL0]; in _swrast_alpha_test() [all …]
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_tri.c | 67 #define RENDER_SPAN( span ) { \ argument 68 GLint x = span.x, y = YFLIP(xrb, span.y); \ 70 for (i = 0; i < span.end; i++, x++) { \ 71 const DEPTH_TYPE z = FixedToDepth(span.z); \ 74 PACK_TRUECOLOR(p, FixedToInt(span.red), \ 75 FixedToInt(span.green), FixedToInt(span.blue)); \ 79 span.red += span.redStep; \ 80 span.green += span.greenStep; \ 81 span.blue += span.blueStep; \ 82 span.z += span.zStep; \ [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/x11/ |
D | xm_tri.c | 67 #define RENDER_SPAN( span ) { \ argument 68 GLint x = span.x, y = YFLIP(xrb, span.y); \ 70 for (i = 0; i < span.end; i++, x++) { \ 71 const DEPTH_TYPE z = FixedToDepth(span.z); \ 74 PACK_TRUECOLOR(p, FixedToInt(span.red), \ 75 FixedToInt(span.green), FixedToInt(span.blue)); \ 79 span.red += span.redStep; \ 80 span.green += span.greenStep; \ 81 span.blue += span.blueStep; \ 82 span.z += span.zStep; \ [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | page_heap.cc | 116 for (Span* span = large_.normal.next; in AllocLarge() local 117 span != &large_.normal; in AllocLarge() 118 span = span->next) { in AllocLarge() 119 if (span->length >= n) { in AllocLarge() 121 || (span->length < best->length) in AllocLarge() 122 || ((span->length == best->length) && (span->start < best->start))) { in AllocLarge() 123 best = span; in AllocLarge() 130 for (Span* span = large_.returned.next; in AllocLarge() local 131 span != &large_.returned; in AllocLarge() 132 span = span->next) { in AllocLarge() [all …]
|
D | span.cc | 45 void Event(Span* span, char op, int v = 0) { in Event() argument 46 span->history[span->nexthistory] = op; in Event() 47 span->value[span->nexthistory] = v; in Event() 48 span->nexthistory++; in Event() 49 if (span->nexthistory == sizeof(span->history)) span->nexthistory = 0; in Event() 64 void DeleteSpan(Span* span) { in DeleteSpan() argument 67 memset(span, 0x3f, sizeof(*span)); in DeleteSpan() 69 Static::span_allocator()->Delete(span); in DeleteSpan() 77 void DLL_Remove(Span* span) { in DLL_Remove() argument 78 span->prev->next = span->next; in DLL_Remove() [all …]
|
D | central_freelist.cc | 99 Span* span = Static::pageheap()->GetDescriptor(p); in MapObjectToSpan() local 100 return span; in MapObjectToSpan() 104 Span* span = MapObjectToSpan(object); in ReleaseToSpans() local 105 ASSERT(span != NULL); in ReleaseToSpans() 106 ASSERT(span->refcount > 0); in ReleaseToSpans() 109 if (span->objects == NULL) { in ReleaseToSpans() 110 tcmalloc::DLL_Remove(span); in ReleaseToSpans() 111 tcmalloc::DLL_Prepend(&nonempty_, span); in ReleaseToSpans() 112 Event(span, 'N', 0); in ReleaseToSpans() 119 for (void* p = span->objects; p != NULL; p = FL_Next(p)){ in ReleaseToSpans() [all …]
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | page_heap.cc | 115 for (Span* span = large_.normal.next; in AllocLarge() local 116 span != &large_.normal; in AllocLarge() 117 span = span->next) { in AllocLarge() 118 if (span->length >= n) { in AllocLarge() 120 || (span->length < best->length) in AllocLarge() 121 || ((span->length == best->length) && (span->start < best->start))) { in AllocLarge() 122 best = span; in AllocLarge() 129 for (Span* span = large_.returned.next; in AllocLarge() local 130 span != &large_.returned; in AllocLarge() 131 span = span->next) { in AllocLarge() [all …]
|
D | span.cc | 45 void Event(Span* span, char op, int v = 0) { in Event() argument 46 span->history[span->nexthistory] = op; in Event() 47 span->value[span->nexthistory] = v; in Event() 48 span->nexthistory++; in Event() 49 if (span->nexthistory == sizeof(span->history)) span->nexthistory = 0; in Event() 64 void DeleteSpan(Span* span) { in DeleteSpan() argument 67 memset(span, 0x3f, sizeof(*span)); in DeleteSpan() 69 Static::span_allocator()->Delete(span); in DeleteSpan() 77 void DLL_Remove(Span* span) { in DLL_Remove() argument 78 span->prev->next = span->next; in DLL_Remove() [all …]
|
D | central_freelist.cc | 99 Span* span = Static::pageheap()->GetDescriptor(p); in MapObjectToSpan() local 100 return span; in MapObjectToSpan() 104 Span* span = MapObjectToSpan(object); in ReleaseToSpans() local 105 ASSERT(span != NULL); in ReleaseToSpans() 106 ASSERT(span->refcount > 0); in ReleaseToSpans() 109 if (span->objects == NULL) { in ReleaseToSpans() 110 tcmalloc::DLL_Remove(span); in ReleaseToSpans() 111 tcmalloc::DLL_Prepend(&nonempty_, span); in ReleaseToSpans() 112 Event(span, 'N', 0); in ReleaseToSpans() 119 for (void* p = span->objects; p != NULL; p = *((void**) p)) { in ReleaseToSpans() [all …]
|
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
D | section.c | 835 yasm_span *span; /* span this term is a member of */ member 882 yasm_span *span; /* used only for check_cycle */ member 890 yasm_span *span = yasm_xmalloc(sizeof(yasm_span)); in create_span() local 892 span->bc = bc; in create_span() 894 yasm_value_init_copy(&span->depval, value); in create_span() 896 yasm_value_initialize(&span->depval, NULL, 0); in create_span() 897 span->rel_term = NULL; in create_span() 898 span->terms = NULL; in create_span() 899 span->items = NULL; in create_span() 900 span->num_terms = 0; in create_span() [all …]
|