Home | History | Annotate | Download | only in main

Lines Matching refs:mapsize

102 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize,
115 ctx->PixelMaps.StoS.Size = mapsize;
116 for (i = 0; i < mapsize; i++) {
122 ctx->PixelMaps.ItoI.Size = mapsize;
123 for (i = 0; i < mapsize; i++) {
129 pm->Size = mapsize;
130 for (i = 0; i < mapsize; i++) {
143 struct gl_pixelstore_attrib *pack, GLsizei mapsize,
154 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 (!_mesa_is_pow_two(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 (!_mesa_is_pow_two(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 (!_mesa_is_pow_two(mapsize)) {
286 _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(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,
358 for (i = 0; i < mapsize; i++) {
363 memcpy(values, pm->Map, mapsize * sizeof(GLfloat));
380 GLint mapsize, i;
389 mapsize = pm->Size;
391 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
407 memcpy(values, ctx->PixelMaps.StoS.Map, mapsize * sizeof(GLint));
410 for (i = 0; i < mapsize; i++) {
429 GLint mapsize, i;
438 mapsize = pm->Size;
440 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY,
457 for (i = 0; i < mapsize; i++) {
462 for (i = 0; i < mapsize; i++) {
467 for (i = 0; i < mapsize; i++) {