Hi Józef,
sorry for responding here, but I didn't manage to send the corrections in
response to your previous mail. Thanks for your answer. The fragment of
your previous mail is:
"> - glUnmapBufferARB(GL_PIXEL_UNP
ACK_BUFFER_ARB);
This change is suspicious. The buffer was mapped to fill it with
values above, and it can be safely unmapped at this point. Why do you
need this change?
> glPixelMapusv(GL_PIXEL_MAP_R_TO_R, max,
NULL);
> glPixelMapusv(GL_PIXEL_MAP_G_TO_G, max,
NULL);
> glPixelMapusv(GL_PIXEL_MAP_B_TO_B, max,
NULL);
> @@ -353,7 +352,7 @@ test_pixel_map(void)
> }
>
> for (i = 0; i < max; i++) {
> - if (pbo_mem[i] != (255 - i)) {
> + if (pbo_mem[i] != (max - i - 1)) {
Please use tabs instead of spaces. Otherwise, this seems to be a
correct fix. I guess that the previous version of the test passes with
some drivers probably because "max" is equal to 256."
When it comes to unmapping the buffer, I don't know if I'm thinking right,
but I read in OpenGL 4.5 spec that "Unmapping a mapped buffer object
invalidates the pointer to its data store" and glUnmapBuffer is using a
pointer to GL_PIXEL_UNPACK_BUFFER.
Regards,
Sandra
_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit