Lines Matching defs:mapsize
103 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize,
116 ctx->PixelMaps.StoS.Size = mapsize;
117 for (i = 0; i < mapsize; i++) {
123 ctx->PixelMaps.ItoI.Size = mapsize;
124 for (i = 0; i < mapsize; i++) {
130 pm->Size = mapsize;
131 for (i = 0; i < mapsize; i++) {
144 struct gl_pixelstore_attrib *pack, GLsizei mapsize,
155 ok = _mesa_validate_pbo_access(1, &ctx->DefaultPacking, mapsize, 1, 1,
177 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values )
182 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
183 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapfv(mapsize)" );
188 /* test that mapsize is a power of two */
189 if (!util_is_power_of_two_or_zero(mapsize)) {
190 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapfv(mapsize)" );
197 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
211 store_pixelmap(ctx, map, mapsize, values);
218 _mesa_PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values )
223 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
224 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" );
229 /* test that mapsize is a power of two */
230 if (!util_is_power_of_two_or_zero(mapsize)) {
231 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" );
238 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
255 for (i = 0; i < mapsize; i++) {
261 for (i = 0; i < mapsize; i++) {
268 store_pixelmap(ctx, map, mapsize, fvalues);
273 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values )
278 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
279 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapusv(mapsize)" );
284 /* test that mapsize is a power of two */
285 if (!util_is_power_of_two_or_zero(mapsize)) {
286 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapusv(mapsize)" );
293 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
310 for (i = 0; i < mapsize; i++) {
316 for (i = 0; i < mapsize; i++) {
323 store_pixelmap(ctx, map, mapsize, fvalues);
331 GLint mapsize, i;
340 mapsize = pm->Size;
342 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
361 for (i = 0; i < mapsize; i++) {
366 memcpy(values, pm->Map, mapsize * sizeof(GLfloat));
383 GLint mapsize, i;
392 mapsize = pm->Size;
394 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
413 memcpy(values, ctx->PixelMaps.StoS.Map, mapsize * sizeof(GLint));
416 for (i = 0; i < mapsize; i++) {
435 GLint mapsize, i;
444 mapsize = pm->Size;
446 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
466 for (i = 0; i < mapsize; i++) {
471 for (i = 0; i < mapsize; i++) {
476 for (i = 0; i < mapsize; i++) {