• Home
  • Raw
  • Download

Lines Matching refs:mapsize

102 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize,  in store_pixelmap()  argument
115 ctx->PixelMaps.StoS.Size = mapsize; in store_pixelmap()
116 for (i = 0; i < mapsize; i++) { in store_pixelmap()
122 ctx->PixelMaps.ItoI.Size = mapsize; in store_pixelmap()
123 for (i = 0; i < mapsize; i++) { in store_pixelmap()
129 pm->Size = mapsize; in store_pixelmap()
130 for (i = 0; i < mapsize; i++) { in store_pixelmap()
143 struct gl_pixelstore_attrib *pack, GLsizei mapsize, in validate_pbo_access() argument
154 ok = _mesa_validate_pbo_access(1, &ctx->DefaultPacking, mapsize, 1, 1, in validate_pbo_access()
176 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values ) in _mesa_PixelMapfv() argument
181 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) { in _mesa_PixelMapfv()
188 if (!util_is_power_of_two_or_zero(mapsize)) { in _mesa_PixelMapfv()
196 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY, in _mesa_PixelMapfv()
210 store_pixelmap(ctx, map, mapsize, values); in _mesa_PixelMapfv()
217 _mesa_PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values ) in _mesa_PixelMapuiv() argument
222 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) { in _mesa_PixelMapuiv()
229 if (!util_is_power_of_two_or_zero(mapsize)) { in _mesa_PixelMapuiv()
237 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY, in _mesa_PixelMapuiv()
254 for (i = 0; i < mapsize; i++) { in _mesa_PixelMapuiv()
260 for (i = 0; i < mapsize; i++) { in _mesa_PixelMapuiv()
267 store_pixelmap(ctx, map, mapsize, fvalues); in _mesa_PixelMapuiv()
272 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values ) in _mesa_PixelMapusv() argument
277 if (mapsize < 1 || mapsize > MAX_PIXEL_MAP_TABLE) { in _mesa_PixelMapusv()
284 if (!util_is_power_of_two_or_zero(mapsize)) { in _mesa_PixelMapusv()
292 if (!validate_pbo_access(ctx, &ctx->Unpack, mapsize, GL_INTENSITY, in _mesa_PixelMapusv()
309 for (i = 0; i < mapsize; i++) { in _mesa_PixelMapusv()
315 for (i = 0; i < mapsize; i++) { in _mesa_PixelMapusv()
322 store_pixelmap(ctx, map, mapsize, fvalues); in _mesa_PixelMapusv()
330 GLint mapsize, i; in _mesa_GetnPixelMapfvARB() local
339 mapsize = pm->Size; in _mesa_GetnPixelMapfvARB()
341 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY, in _mesa_GetnPixelMapfvARB()
357 for (i = 0; i < mapsize; i++) { in _mesa_GetnPixelMapfvARB()
362 memcpy(values, pm->Map, mapsize * sizeof(GLfloat)); in _mesa_GetnPixelMapfvARB()
379 GLint mapsize, i; in _mesa_GetnPixelMapuivARB() local
388 mapsize = pm->Size; in _mesa_GetnPixelMapuivARB()
390 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY, in _mesa_GetnPixelMapuivARB()
406 memcpy(values, ctx->PixelMaps.StoS.Map, mapsize * sizeof(GLint)); in _mesa_GetnPixelMapuivARB()
409 for (i = 0; i < mapsize; i++) { in _mesa_GetnPixelMapuivARB()
428 GLint mapsize, i; in _mesa_GetnPixelMapusvARB() local
437 mapsize = pm->Size; in _mesa_GetnPixelMapusvARB()
439 if (!validate_pbo_access(ctx, &ctx->Pack, mapsize, GL_INTENSITY, in _mesa_GetnPixelMapusvARB()
456 for (i = 0; i < mapsize; i++) { in _mesa_GetnPixelMapusvARB()
461 for (i = 0; i < mapsize; i++) { in _mesa_GetnPixelMapusvARB()
466 for (i = 0; i < mapsize; i++) { in _mesa_GetnPixelMapusvARB()