on 945G(64bit), 915GV(64bit), 945GM(32bit),
1D depth texture, with GL_LUMINANCE mode is not correct.
according to the OpenGL spec, when compare mode is set to GL_LEQUAL
r = 1.0, when R <= Dt
r = 0.0, when R > Dt
and then r is treated as luminance component. so it can only be
(0.0, 0.0, 0.0), or (1.0, 1.0, 1.0)
for RGB components.
And, this work well in non-dri mode.
Created attachment 11288 [details]
Fixed in mesa
with git tip mesa, this issue still exists:
[root@x-945gm mycase]# ./fdo_12176
(15, 30) = (0.250980, 0.250980, 0.250980, 1.000000), should be (0.000000, 0.000000, 0.000000, 1.000000)
(45, 30) = (0.501961, 0.501961, 0.501961, 1.000000), should be (1.000000, 1.000000, 1.000000, 1.000000)
haihao, would you please double check nanhai's patch? thanks.
fixed in mesa 75e4db18049f3284197c9a8deabd9dd74aa7920e
Mass version move, cvs -> git