Home | History | Annotate | Download | only in swrast

Lines Matching refs:Const

66    const GLfloat temp0 = LERP(a, v00, v10);
67 const GLfloat temp1 = LERP(a, v01, v11);
81 const GLfloat temp00 = LERP(a, v000, v100);
82 const GLfloat temp10 = LERP(a, v010, v110);
83 const GLfloat temp01 = LERP(a, v001, v101);
84 const GLfloat temp11 = LERP(a, v011, v111);
85 const GLfloat temp0 = LERP(b, temp00, temp10);
86 const GLfloat temp1 = LERP(b, temp01, temp11);
95 lerp_rgba(GLfloat result[4], GLfloat t, const GLfloat a[4], const GLfloat b[4])
109 const GLfloat t00[4], const GLfloat t10[4],
110 const GLfloat t01[4], const GLfloat t11[4])
124 const GLfloat t000[4], const GLfloat t100[4],
125 const GLfloat t010[4], const GLfloat t110[4],
126 const GLfloat t001[4], const GLfloat t101[4],
127 const GLfloat t011[4], const GLfloat t111[4])
160 const struct gl_texture_image *img,
164 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
195 const GLfloat min = -1.0F / (2.0F * size);
196 const GLfloat max = 1.0F - min;
210 const GLint flr = IFLOOR(s);
250 const GLfloat min = -1.0F / (2.0F * size);
251 const GLfloat max = 1.0F - min;
289 const struct gl_texture_image *img,
292 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
309 const GLfloat min = 1.0F / (2.0F * size);
310 const GLfloat max = 1.0F - min;
323 const GLfloat min = -1.0F / (2.0F * size);
324 const GLfloat max = 1.0F - min;
335 const GLfloat min = 1.0F / (2.0F * size);
336 const GLfloat max = 1.0F - min;
337 const GLint flr = IFLOOR(s);
355 const GLfloat u = FABSF(s);
368 const GLfloat min = 1.0F / (2.0F * size);
369 const GLfloat max = 1.0F - min;
370 const GLfloat u = FABSF(s);
383 const GLfloat min = -1.0F / (2.0F * size);
384 const GLfloat max = 1.0F - min;
385 const GLfloat u = FABSF(s);
502 nearest_texcoord(const struct gl_sampler_object *samp,
503 const struct gl_texture_object *texObj,
505 const GLfloat texcoord[4],
508 const struct gl_texture_image *img = texObj->Image[0][level];
509 const GLint width = img->Width;
510 const GLint height = img->Height;
511 const GLint depth = img->Depth;
551 linear_texcoord(const struct gl_sampler_object *samp,
552 const struct gl_texture_object *texObj,
554 const GLfloat texcoord[4],
558 const struct gl_texture_image *img = texObj->Image[0][level];
559 const GLint width = img->Width;
560 const GLint height = img->Height;
561 const GLint depth = img->Depth;
610 linear_mipmap_level(const struct gl_texture_object *tObj, GLfloat lambda)
625 nearest_mipmap_level(const struct gl_texture_object *tObj, GLfloat lambda)
661 compute_min_mag_ranges(const struct gl_sampler_object *samp,
662 GLuint n, const GLfloat lambda[],
770 get_border_color(const struct gl_sampler_object *samp,
771 const struct gl_texture_image *img,
832 is_depth_texture(const struct gl_texture_object *tObj)
848 const struct gl_sampler_object *samp,
849 const struct gl_texture_image *img,
850 const GLfloat texcoord[4], GLfloat rgba[4])
852 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
853 const GLint width = img->Width2; /* without border, power of two */
873 const struct gl_sampler_object *samp,
874 const struct gl_texture_image *img,
875 const GLfloat texcoord[4], GLfloat rgba[4])
877 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
878 const GLint width = img->Width2;
915 const struct gl_sampler_object *samp,
916 const struct gl_texture_object *tObj,
917 GLuint n, const GLfloat texcoord[][4],
918 const GLfloat lambda[], GLfloat rgba[][4])
931 const struct gl_sampler_object *samp,
932 const struct gl_texture_object *tObj,
933 GLuint n, const GLfloat texcoord[][4],
934 const GLfloat lambda[], GLfloat rgba[][4])
947 const struct gl_sampler_object *samp,
948 const struct gl_texture_object *tObj,
949 GLuint n, const GLfloat texcoord[][4],
950 const GLfloat lambda[], GLfloat rgba[][4])
962 const GLfloat f = FRAC(lambda[i]);
973 const struct gl_sampler_object *samp,
974 const struct gl_texture_object *tObj,
975 GLuint n, const GLfloat texcoord[][4],
976 const GLfloat lambda[], GLfloat rgba[][4])
988 const GLfloat f = FRAC(lambda[i]);
1000 const struct gl_sampler_object *samp,
1001 const struct gl_texture_object *tObj, GLuint n,
1002 const GLfloat texcoords[][4], const GLfloat lambda[],
1017 const struct gl_sampler_object *samp,
1018 const struct gl_texture_object *tObj, GLuint n,
1019 const GLfloat texcoords[][4], const GLfloat lambda[],
1034 const struct gl_sampler_object *samp,
1035 const struct gl_texture_object *tObj, GLuint n,
1036 const GLfloat texcoords[][4],
1037 const GLfloat lambda[], GLfloat rgba[][4] )
1049 const GLuint m = minEnd - minStart;
1114 const struct gl_sampler_object *samp,
1115 const struct gl_texture_image *img,
1116 const GLfloat texcoord[4],
1119 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
1120 const GLint width = img->Width2; /* without border, power of two */
1121 const
1148 const struct gl_sampler_object *samp,
1149 const struct gl_texture_image *img,
1150 const GLfloat texcoord[4],
1153 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
1154 const GLint width = img->Width2;
1155 const GLint height = img->Height2;
1213 const struct gl_sampler_object *samp,
1214 const struct gl_texture_image *img,
1215 const GLfloat texcoord[4],
1218 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
1219 const GLint width = img->Width2;
1220 const GLint height = img->Height2;
1246 const struct gl_sampler_object *samp,
1247 const struct gl_texture_object *tObj,
1248 GLuint n, const GLfloat texcoord[][4],
1249 const GLfloat lambda[], GLfloat rgba[][4])
1261 const struct gl_sampler_object *samp,
1262 const struct gl_texture_object *tObj,
1263 GLuint n, const GLfloat texcoord[][4],
1264 const GLfloat lambda[], GLfloat rgba[][4])
1277 const struct gl_sampler_object *samp,
1278 const struct gl_texture_object *tObj,
1279 GLuint n, const GLfloat texcoord[][4],
1280 const GLfloat lambda[], GLfloat rgba[][4])
1292 const GLfloat f = FRAC(lambda[i]);
1303 const struct gl_sampler_object *samp,
1304 const struct gl_texture_object *tObj,
1305 GLuint n, const GLfloat texcoord[][4],
1306 const GLfloat lambda[], GLfloat rgba[][4] )
1318 const GLfloat f = FRAC(lambda[i]);
1329 const struct gl_sampler_object *samp,
1330 const struct gl_texture_object *tObj,
1331 GLuint n, const GLfloat texcoord[][4],
1332 const GLfloat lambda[], GLfloat rgba[][4])
1346 const GLfloat f = FRAC(lambda[i]);
1360 const struct gl_sampler_object *samp,
1361 const struct gl_texture_object *tObj, GLuint n,
1362 const GLfloat texcoords[][4],
1363 const GLfloat lambda[], GLfloat rgba[][4])
1377 const struct gl_sampler_object *samp,
1378 const struct gl_texture_object *tObj, GLuint n,
1379 const GLfloat texcoords[][4],
1380 const GLfloat lambda[], GLfloat rgba[][4])
1384 const struct swrast_texture_image *swImg = swrast_texture_image_const(image);
1412 const struct gl_sampler_object *samp,
1413 const struct gl_texture_object *tObj,
1414 GLuint n, const GLfloat texcoords[][4],
1415 const GLfloat lambda[], GLfloat rgba[][4])
1417 const struct gl_texture_image *img = tObj->Image[0][tObj->BaseLevel];
1418 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
1419 const GLfloat width = (GLfloat) img->Width;
1420 const GLfloat height = (GLfloat) img->Height;
1421 const GLint colMask = img->Width - 1;
1422 const GLint rowMask = img->Height - 1;
1423 const GLint shift = img->WidthLog2;
1457 const struct gl_sampler_object *samp,
1458 const struct gl_texture_object *tObj,
1459 GLuint n, const GLfloat texcoords[][4],
1460 const GLfloat lambda[], GLfloat rgba[][4])
1462 const struct gl_texture_image *img = tObj->Image[0][tObj->BaseLevel];
1463 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
1464 const GLfloat width = (GLfloat) img->Width;
1465 const GLfloat height = (GLfloat) img->Height;
1466 const GLint colMask = img->Width - 1;
1467 const GLint rowMask = img->Height - 1;
1468 const GLint shift = img->WidthLog2;
1480 const GLint col = IFLOOR(texcoords[i][0] * width) & colMask;
1481 const GLint row = IFLOOR(texcoords[i][1] * height) & rowMask;
1482 const GLint pos = (row << shift) | col;
1483 const GLuint texel = *((GLuint *) swImg->Map + pos);
1495 const struct gl_sampler_object *samp,
1496 const struct gl_texture_object *tObj,
1497 GLuint n, const GLfloat texcoords[][4],
1498 const GLfloat lambda[], GLfloat rgba[][4])
1500 const struct gl_texture_image *tImg = tObj->Image[0][tObj->BaseLevel];
1501 const struct swrast_texture_image *swImg = swrast_texture_image_const(tImg);
1505 const GLboolean repeatNoBorderPOT = (samp->WrapS == GL_REPEAT)
1516 const GLuint m = minEnd - minStart;
1572 const GLuint m = magEnd - magStart;
1642 const struct gl_sampler_object *samp,
1643 const struct gl_texture_object *tObj,
1644 const GLfloat texcoord[4],
1645 const GLfloat dudx, const GLfloat dvdx,
1646 const GLfloat dudy, const GLfloat dvdy, const GLint lod,
1651 const struct gl_texture_image *img = tObj->Image[0][level];
1652 const struct gl_texture_image *mostDetailedImage =
1654 const struct swrast_texture_image *swImg =
1718 const GLint qClamped = q >= 0.0F ? q : 0;
1769 const struct gl_sampler_object *samp,
1770 const struct gl_texture_object *tObj,
1771 const GLfloat texcoord[4],
1772 const GLfloat dudx, const GLfloat dvdx,
1773 const GLfloat dudy, const GLfloat dvdy, const GLint lod,
1778 const struct gl_texture_image *img = tObj->Image[0][level];
1831 texture_unit_index(const struct gl_context *ctx,
1832 const struct gl_texture_object *tObj)
1834 const GLuint maxUnit
1835 = (ctx->Texture._EnabledCoordUnits > 1) ? ctx->Const.MaxTextureUnits : 1;
1852 * NOTE: the const GLfloat lambda_iso[] parameter does *NOT* contain
1860 const struct gl_sampler_object *samp,
1861 const struct gl_texture_object *tObj,
1862 GLuint n, const GLfloat texcoords[][4],
1863 const GLfloat lambda_iso[], GLfloat rgba[][4])
1865 const struct gl_texture_image *tImg = tObj->Image[0][tObj->BaseLevel];
1866 const struct swrast_texture_image *swImg = swrast_texture_image_const(tImg);
1867 const GLfloat maxEccentricity =
1882 const GLuint u = texture_unit_index(ctx, tObj);
1883 const GLuint attr = FRAG_ATTRIB_TEX0 + u;
1886 const GLfloat dsdx = span->attrStepX[attr][0];
1887 const GLfloat dsdy = span->attrStepY[attr][0];
1888 const GLfloat dtdx = span->attrStepX[attr][1];
1889 const GLfloat dtdy = span->attrStepY[attr][1];
1890 const GLfloat dqdx = span->attrStepX[attr][3];
1891 const GLfloat dqdy = span->attrStepY[attr][3];
1897 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[u];
1898 const GLboolean adjustLOD =
1913 const GLfloat invQ = (q == 0.0F) ? 1.0F : (1.0F / q);
1965 const GLfloat bias =
1967 -ctx->Const.MaxTextureLodBias,
1968 ctx->Const.MaxTextureLodBias);
2014 const struct gl_sampler_object *samp,
2015 const struct gl_texture_image *img,
2016 const GLfloat texcoord[4],
2019 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2020 const GLint width = img->Width2; /* without border, power of two */
2021 const GLint height = img->Height2; /* without border, power of two */
2022 const GLint depth = img->Depth2; /* without border, power of two */
2047 const struct gl_sampler_object *samp,
2048 const struct gl_texture_image *img,
2049 const GLfloat texcoord[4],
2052 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2053 const GLint width = img->Width2;
2054 const GLint height = img->Height2;
2055 const GLint depth = img->Depth2;
2142 const struct gl_sampler_object *samp,
2143 const struct gl_texture_object *tObj,
2144 GLuint n, const GLfloat texcoord[][4],
2145 const GLfloat lambda[], GLfloat rgba[][4] )
2157 const struct gl_sampler_object *samp,
2158 const struct gl_texture_object *tObj,
2159 GLuint n, const GLfloat texcoord[][4],
2160 const GLfloat lambda[], GLfloat rgba[][4])
2173 const struct gl_sampler_object *samp,
2174 const struct gl_texture_object *tObj,
2175 GLuint n, const GLfloat texcoord[][4],
2176 const GLfloat lambda[], GLfloat rgba[][4])
2188 const GLfloat f = FRAC(lambda[i]);
2199 const struct gl_sampler_object *samp,
2200 const struct gl_texture_object *tObj,
2201 GLuint n, const GLfloat texcoord[][4],
2202 const GLfloat lambda[], GLfloat rgba[][4])
2214 const GLfloat f = FRAC(lambda[i]);
2226 const struct gl_sampler_object *samp,
2227 const struct gl_texture_object *tObj, GLuint n,
2228 const GLfloat texcoords[][4], const GLfloat lambda[],
2243 const struct gl_sampler_object *samp,
2244 const struct gl_texture_object *tObj, GLuint n,
2245 const GLfloat texcoords[][4],
2246 const GLfloat lambda[], GLfloat rgba[][4])
2260 const struct gl_sampler_object *samp,
2261 const struct gl_texture_object *tObj, GLuint n,
2262 const GLfloat texcoords[][4], const GLfloat lambda[],
2339 static const struct gl_texture_image **
2340 choose_cube_face(const struct gl_texture_object *texObj,
2341 const GLfloat texcoord[4], GLfloat newCoord[4])
2354 const GLfloat rx = texcoord[0];
2355 const GLfloat ry = texcoord[1];
2356 const GLfloat rz = texcoord[2];
2357 const GLfloat arx = FABSF(rx), ary = FABSF(ry), arz = FABSF(rz);
2405 const float ima = 1.0F / ma;
2410 return (const struct gl_texture_image **) texObj->Image[face];
2416 const struct gl_sampler_object *samp,
2417 const struct gl_texture_object *tObj, GLuint n,
2418 const GLfloat texcoords[][4], const GLfloat lambda[],
2424 const struct gl_texture_image **images;
2440 const struct gl_sampler_object *samp,
2441 const struct gl_texture_object *tObj, GLuint n,
2442 const GLfloat texcoords[][4],
2443 const GLfloat lambda[], GLfloat rgba[][4])
2448 const struct gl_texture_image **images;
2464 const struct gl_sampler_object *samp,
2465 const struct gl_texture_object *tObj,
2466 GLuint n, const GLfloat texcoord[][4],
2467 const GLfloat lambda[], GLfloat rgba[][4])
2472 const struct gl_texture_image **images;
2499 const struct gl_sampler_object *samp,
2500 const struct gl_texture_object *tObj,
2501 GLuint n, const GLfloat texcoord[][4],
2502 const GLfloat lambda[], GLfloat rgba[][4])
2507 const struct gl_texture_image **images;
2524 const struct gl_sampler_object *samp,
2525 const struct gl_texture_object *tObj,
2526 GLuint n, const GLfloat texcoord[][4],
2527 const GLfloat lambda[], GLfloat rgba[][4])
2532 const struct gl_texture_image **images;
2543 const GLfloat f = FRAC(lambda[i]);
2559 const struct gl_sampler_object *samp,
2560 const struct gl_texture_object *tObj,
2561 GLuint n, const GLfloat texcoord[][4],
2562 const GLfloat lambda[], GLfloat rgba[][4])
2567 const struct gl_texture_image **images;
2578 const GLfloat f = FRAC(lambda[i]);
2595 const struct gl_sampler_object *samp,
2596 const struct gl_texture_object *tObj, GLuint n,
2597 const GLfloat texcoords[][4], const GLfloat lambda[],
2609 const GLuint m = minEnd - minStart;
2647 const GLuint m = magEnd - magStart;
2672 const struct gl_sampler_object *samp,
2673 const struct gl_texture_object *tObj, GLuint n,
2674 const GLfloat texcoords[][4], const GLfloat lambda[],
2677 const struct gl_texture_image *img = tObj->Image[0][0];
2678 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2679 const GLint width = img->Width;
2680 const GLint height = img->Height;
2707 const struct gl_sampler_object *samp,
2708 const struct gl_texture_object *tObj, GLuint n,
2709 const GLfloat texcoords[][4],
2710 const GLfloat lambda[], GLfloat rgba[][4])
2712 const struct gl_texture_image *img = tObj->Image[0][0];
2713 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2714 const GLint width = img->Width;
2715 const GLint height = img->Height;
2774 const struct gl_sampler_object *samp,
2775 const struct gl_texture_object *tObj, GLuint n,
2776 const GLfloat texcoords[][4], const GLfloat lambda[],
2819 const struct gl_sampler_object *samp,
2820 const struct gl_texture_image *img,
2821 const GLfloat texcoord[4],
2824 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2825 const GLint width = img->Width2; /* without border, power of two */
2826 const GLint height = img->Height2; /* without border, power of two */
2827 const GLint depth = img->Depth;
2853 const struct gl_sampler_object *samp,
2854 const struct gl_texture_image *img,
2855 const GLfloat texcoord[4],
2858 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
2859 const GLint width = img->Width2;
2860 const GLint height = img->Height2;
2861 const GLint depth = img->Depth;
2924 const struct gl_sampler_object *samp,
2925 const struct gl_texture_object *tObj,
2926 GLuint n, const GLfloat texcoord[][4],
2927 const GLfloat lambda[], GLfloat rgba[][4])
2940 const struct gl_sampler_object *samp,
2941 const struct gl_texture_object *tObj,
2942 GLuint n, const GLfloat texcoord[][4],
2943 const GLfloat lambda[], GLfloat rgba[][4])
2957 const struct gl_sampler_object *samp,
2958 const struct gl_texture_object *tObj,
2959 GLuint n, const GLfloat texcoord[][4],
2960 const GLfloat lambda[], GLfloat rgba[][4])
2972 const GLfloat f = FRAC(lambda[i]);
2985 const struct gl_sampler_object *samp,
2986 const struct gl_texture_object *tObj,
2987 GLuint n, const GLfloat texcoord[][4],
2988 const GLfloat lambda[], GLfloat rgba[][4])
3000 const GLfloat f = FRAC(lambda[i]);
3014 const struct gl_sampler_object *samp,
3015 const struct gl_texture_object *tObj, GLuint n,
3016 const GLfloat texcoords[][4], const GLfloat lambda[],
3032 const struct gl_sampler_object *samp,
3033 const struct gl_texture_object *tObj, GLuint n,
3034 const GLfloat texcoords[][4],
3035 const GLfloat lambda[], GLfloat rgba[][4])
3049 const struct gl_sampler_object *samp,
3050 const struct gl_texture_object *tObj, GLuint n,
3051 const GLfloat texcoords[][4], const GLfloat lambda[],
3138 const struct gl_sampler_object *samp,
3139 const struct gl_texture_image *img,
3140 const GLfloat texcoord[4],
3143 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
3144 const GLint width = img->Width2; /* without border, power of two */
3145 const GLint height = img->Height;
3169 const struct gl_sampler_object *samp,
3170 const struct gl_texture_image *img,
3171 const GLfloat texcoord[4],
3174 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
3175 const GLint width = img->Width2;
3176 const GLint height = img->Height;
3219 const struct gl_sampler_object *samp,
3220 const struct gl_texture_object *tObj,
3221 GLuint n, const GLfloat texcoord[][4],
3222 const GLfloat lambda[], GLfloat rgba[][4])
3235 const struct gl_sampler_object *samp,
3236 const struct gl_texture_object *tObj,
3237 GLuint n, const GLfloat texcoord[][4],
3238 const GLfloat lambda[], GLfloat rgba[][4])
3252 const struct gl_sampler_object *samp,
3253 const struct gl_texture_object *tObj,
3254 GLuint n, const GLfloat texcoord[][4],
3255 const GLfloat lambda[], GLfloat rgba[][4])
3267 const GLfloat f = FRAC(lambda[i]);
3278 const struct gl_sampler_object *samp,
3279 const struct gl_texture_object *tObj,
3280 GLuint n, const GLfloat texcoord[][4],
3281 const GLfloat lambda[], GLfloat rgba[][4])
3293 const GLfloat f = FRAC(lambda[i]);
3305 const struct gl_sampler_object *samp,
3306 const struct gl_texture_object *tObj, GLuint n,
3307 const GLfloat texcoords[][4], const GLfloat lambda[],
3322 const struct gl_sampler_object *samp,
3323 const struct gl_texture_object *tObj, GLuint n,
3324 const GLfloat texcoords[][4],
3325 const GLfloat lambda[], GLfloat rgba[][4])
3339 const struct gl_sampler_object *samp,
3340 const struct gl_texture_object *tObj, GLuint n,
3341 const GLfloat texcoords[][4], const GLfloat lambda[],
3454 const GLfloat d = 0.25F;
3512 choose_depth_texture_level(const struct gl_sampler_object *samp,
3513 const struct gl_texture_object *tObj, GLfloat lambda)
3538 const struct gl_sampler_object *samp,
3539 const struct gl_texture_object *tObj, GLuint n,
3540 const GLfloat texcoords[][4], const GLfloat lambda[],
3543 const GLint level = choose_depth_texture_level(samp, tObj, lambda[0]);
3544 const struct gl_texture_image *img = tObj->Image[0][level];
3545 const struct swrast_texture_image *swImg = swrast_texture_image_const(img);
3546 const GLint width = img->Width;
3547 const GLint height = img->Height;
3548 const GLint depth = img->Depth;
3549 const GLuint compare_coord = (tObj->Target == GL_TEXTURE_2D_ARRAY_EXT)
3682 const struct gl_sampler_object *samp,
3683 const struct gl_texture_object *tObj, GLuint n,
3684 const GLfloat texcoords[][4], const GLfloat lambda[],
3707 const struct gl_texture_object *t,
3708 const struct gl_sampler_object *sampler)
3714 const GLboolean needLambda =
3749 const struct gl_texture_image *img = t->Image[0][t->BaseLevel];
3750 const struct swrast_texture_image *swImg =