i965: Force zero swizzles for unused components in GL_RED and GL_RG
authorGert Wollny <gert.wollny@collabora.com>
Thu, 15 Nov 2018 18:01:23 +0000 (19:01 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Mon, 19 Nov 2018 07:05:44 +0000 (08:05 +0100)
commitc5363869d4971780401b21bb75083ef2518c12be
tree53569c8efcabe26e87a824ecb61c61d7e2128cb2
parentebcde3454552adc6d3fea8af2207aafaba857796
i965: Force zero swizzles for unused components in GL_RED and GL_RG

This makes it possible to use a hardware luminance format as RED format.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c