Home
last modified time | relevance | path

Searched refs:gl_swizzle (Results 1 – 1 of 1) sorted by relevance

/external/virglrenderer/src/
Dvrend_renderer.c474 GLint gl_swizzle[4]; member
2191 view->gl_swizzle[i] = to_gl_swizzle(swizzle[i]); in vrend_create_sampler_view()
2257 glTexParameteri(view->target, GL_TEXTURE_SWIZZLE_R + i, view->gl_swizzle[i]); in vrend_create_sampler_view()
2260 glTexParameteriv(view->target, GL_TEXTURE_SWIZZLE_RGBA, view->gl_swizzle); in vrend_create_sampler_view()
3012 if (memcmp(tex->cur_swizzle, view->gl_swizzle, 4 * sizeof(GLint))) { in vrend_set_single_sampler_view()
3015 if (tex->cur_swizzle[i] != view->gl_swizzle[i]) { in vrend_set_single_sampler_view()
3016 … glTexParameteri(view->texture->target, GL_TEXTURE_SWIZZLE_R + i, view->gl_swizzle[i]); in vrend_set_single_sampler_view()
3020 … glTexParameteriv(view->texture->target, GL_TEXTURE_SWIZZLE_RGBA, view->gl_swizzle); in vrend_set_single_sampler_view()
3021 memcpy(tex->cur_swizzle, view->gl_swizzle, 4 * sizeof(GLint)); in vrend_set_single_sampler_view()
4202 … (tview->gl_swizzle[0] == GL_ZERO || tview->gl_swizzle[0] == GL_ONE) ? 0.0 : 1.0, in vrend_draw_bind_samplers_shader()
[all …]