Lines Matching refs:visual
296 st_visual_have_buffers(stfb->iface->visual, 1 << statt)) in st_framebuffer_update_attachments()
323 format = stfb->iface->visual->depth_stencil_format; in st_framebuffer_add_renderbuffer()
327 format = stfb->iface->visual->accum_format; in st_framebuffer_add_renderbuffer()
331 format = stfb->iface->visual->color_format; in st_framebuffer_add_renderbuffer()
341 rb = st_new_renderbuffer_fb(format, stfb->iface->visual->samples, sw); in st_framebuffer_add_renderbuffer()
371 st_visual_to_context_mode(const struct st_visual *visual, in st_visual_to_context_mode() argument
376 if (st_visual_have_buffers(visual, ST_ATTACHMENT_BACK_LEFT_MASK)) in st_visual_to_context_mode()
379 if (st_visual_have_buffers(visual, in st_visual_to_context_mode()
383 if (visual->color_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
385 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
388 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
391 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
394 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
399 mode->sRGBCapable = util_format_is_srgb(visual->color_format); in st_visual_to_context_mode()
402 if (visual->depth_stencil_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
404 util_format_get_component_bits(visual->depth_stencil_format, in st_visual_to_context_mode()
407 util_format_get_component_bits(visual->depth_stencil_format, in st_visual_to_context_mode()
411 if (visual->accum_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
413 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
416 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
419 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
422 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
426 if (visual->samples > 1) { in st_visual_to_context_mode()
428 mode->samples = visual->samples; in st_visual_to_context_mode()
452 st_visual_to_context_mode(stfbi->visual, &mode); in st_framebuffer_create()
476 util_format_srgb(stfbi->visual->color_format); in st_framebuffer_create()
481 PIPE_TEXTURE_2D, stfbi->visual->samples, in st_framebuffer_create()
482 stfbi->visual->samples, in st_framebuffer_create()
923 st_visual_to_context_mode(&attribs->visual, &mode); in st_api_create_context()
925 if (attribs->visual.no_config) in st_api_create_context()