Commit ce94ee1d authored by Marek Olšák's avatar Marek Olšák

fbo-generatemipmap-formats: increase tolerance for compressed formats

Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 212b1241
......@@ -359,6 +359,15 @@ test_mipmap_drawing(int x, int y, int level, GLuint internalformat)
if (a_size > 8)
a_size = 8;
if (compressed) {
l_size = MIN2(7, l_size);
i_size = MIN2(7, i_size);
r_size = MIN2(7, r_size);
g_size = MIN2(7, g_size);
b_size = MIN2(7, b_size);
a_size = MIN2(7, a_size);
}
if (i_size) {
piglit_set_tolerance_for_bits(i_size, i_size, i_size, i_size);
} else if (l_size) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment