summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_resource.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-07-21 22:13:38 -0700
committerKenneth Graunke <[email protected]>2016-07-22 20:31:20 -0700
commitf80bea2d8066d228e78a1744d036f69a0265116e (patch)
tree085f441bf92b9cc2b4f9832f605ab7865b2fe066 /src/gallium/drivers/r300/r300_resource.c
parentb33bccb51917b9058541641702623bbe89841f1e (diff)
mesa: Don't call GenerateMipmap if Width or Height == 0.
One of the WebGL 2.0 conformance tests is trying to call glGenerateMipmaps with a width and height of 0. With the meta implementation, this generates a "framebuffer attachment incomplete" status, and falls back to the CPU path, calling MapTextureImage. Except that there's no actual texture to map, and we assert fail. There's no work to do in this case. The test expects it to succeed, so just return early with no error and avoid hassling the driver. Cc: [email protected] Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96911 Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_resource.c')
0 files changed, 0 insertions, 0 deletions