Lines Matching refs:swizzle

44 static void byte_swap_swizzle(GLenum *swizzle)  in byte_swap_swizzle()  argument
48 temp = swizzle[0]; in byte_swap_swizzle()
49 swizzle[0] = swizzle[3]; in byte_swap_swizzle()
50 swizzle[3] = temp; in byte_swap_swizzle()
52 temp = swizzle[1]; in byte_swap_swizzle()
53 swizzle[1] = swizzle[2]; in byte_swap_swizzle()
54 swizzle[2] = temp; in byte_swap_swizzle()
73 GLenum *swizzle) in glamor_get_tex_format_type_from_pictformat() argument
79 swizzle[0] = GL_RED; in glamor_get_tex_format_type_from_pictformat()
80 swizzle[1] = GL_GREEN; in glamor_get_tex_format_type_from_pictformat()
81 swizzle[2] = GL_BLUE; in glamor_get_tex_format_type_from_pictformat()
82 swizzle[3] = GL_ALPHA; in glamor_get_tex_format_type_from_pictformat()
100 swizzle[0] = GL_GREEN; in glamor_get_tex_format_type_from_pictformat()
101 swizzle[1] = GL_BLUE; in glamor_get_tex_format_type_from_pictformat()
102 swizzle[2] = GL_ALPHA; in glamor_get_tex_format_type_from_pictformat()
103 swizzle[3] = GL_RED; in glamor_get_tex_format_type_from_pictformat()
106 byte_swap_swizzle(swizzle); in glamor_get_tex_format_type_from_pictformat()
119 swizzle[0] = GL_BLUE; in glamor_get_tex_format_type_from_pictformat()
120 swizzle[2] = GL_RED; in glamor_get_tex_format_type_from_pictformat()
123 byte_swap_swizzle(swizzle); in glamor_get_tex_format_type_from_pictformat()
138 byte_swap_swizzle(swizzle); in glamor_get_tex_format_type_from_pictformat()
172 swizzle[0] = GL_BLUE; in glamor_get_tex_format_type_from_pictformat()
173 swizzle[2] = GL_RED; in glamor_get_tex_format_type_from_pictformat()
231 swizzle[3] = GL_ONE; in glamor_get_tex_format_type_from_pictformat()
284 GLenum swizzle[4]; in glamor_upload_picture_to_texture() local
310 swizzle)) { in glamor_upload_picture_to_texture()
315 needs_swizzle = (swizzle[0] != GL_RED || in glamor_upload_picture_to_texture()
316 swizzle[1] != GL_GREEN || in glamor_upload_picture_to_texture()
317 swizzle[2] != GL_BLUE || in glamor_upload_picture_to_texture()
318 swizzle[3] != GL_ALPHA); in glamor_upload_picture_to_texture()
362 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, swizzle[0]); in glamor_upload_picture_to_texture()
363 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_G, swizzle[1]); in glamor_upload_picture_to_texture()
364 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_B, swizzle[2]); in glamor_upload_picture_to_texture()
365 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, swizzle[3]); in glamor_upload_picture_to_texture()