Lines Matching full:mapsize
109 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize,
122 ctx->PixelMaps.StoS.Size = mapsize;
123 for (i = 0; i < mapsize; i++) {
129 ctx->PixelMaps.ItoI.Size = mapsize;
130 for (i = 0; i < mapsize; i++) {
136 pm->Size = mapsize;
137 for (i = 0; i < mapsize; i++) {
150 struct gl_pixelstore_attrib *pack, GLsizei mapsize,
161 ok = _mesa_validate_pbo_access(1, &ctx->DefaultPacking, mapsize, 1, 1,
184 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values )
190 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
191 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapfv(mapsize)" );
196 /* test that mapsize is a power of two */
197 if (!_mesa_is_pow_two(mapsize)) {
198 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapfv(mapsize)" );
205 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
219 store_pixelmap(ctx, map, mapsize, values);
226 _mesa_PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values )
232 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
233 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" );
238 /* test that mapsize is a power of two */
239 if (!_mesa_is_pow_two(mapsize)) {
240 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" );
247 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
264 for (i = 0; i < mapsize; i++) {
270 for (i = 0; i < mapsize; i++) {
277 store_pixelmap(ctx, map, mapsize, fvalues);
282 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values )
288 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) {
289 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapusv(mapsize)" );
294 /* test that mapsize is a power of two */
295 if (!_mesa_is_pow_two(mapsize)) {
296 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" );
303 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY,
320 for (i = 0; i < mapsize; i++) {
326 for (i = 0; i < mapsize; i++) {
333 store_pixelmap(ctx, map, mapsize, fvalues);
341 GLint mapsize, i;
352 mapsize = pm->Size;
354 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
370 for (i = 0; i < mapsize; i++) {
375 memcpy(values, pm->Map, mapsize * sizeof(GLfloat));
392 GLint mapsize, i;
403 mapsize = pm->Size;
405 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
421 memcpy(values, ctx->PixelMaps.StoS.Map, mapsize * sizeof(GLint));
424 for (i = 0; i < mapsize; i++) {
443 GLint mapsize, i;
454 mapsize = pm->Size;
456 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
473 for (i = 0; i < mapsize; i++) {
478 for (i = 0; i < mapsize; i++) {
483 for (i = 0; i < mapsize; i++) {