swrast: Fix rgba_draw_pixels with GL_COLOR_INDEX
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 4 May 2015 07:58:36 +0000 (09:58 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 4 May 2015 14:08:41 +0000 (16:08 +0200)
commit96142a3e87abb9e61ee87e895df64f5f64606e83
tree127c032da4ed27a92b23679863e09a34230a860d
parentf1d1d17db6bdeac0519652aa7432048507154a28
swrast: Fix rgba_draw_pixels with GL_COLOR_INDEX

When we implemented the format conversion rewrite we forgot to handle
GL_COLOR_INDEX here, which needs special handling.

Fixes the following piglit test:
bin/gl-1.0-drawpixels-color-index -auto -fbo

Buzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90213

Tested-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/swrast/s_drawpix.c