Lines Matching refs:visual
284 st_visual_have_buffers(stfb->iface->visual, 1 << statt)) in st_framebuffer_update_attachments()
311 format = stfb->iface->visual->depth_stencil_format; in st_framebuffer_add_renderbuffer()
315 format = stfb->iface->visual->accum_format; in st_framebuffer_add_renderbuffer()
319 format = stfb->iface->visual->color_format; in st_framebuffer_add_renderbuffer()
329 rb = st_new_renderbuffer_fb(format, stfb->iface->visual->samples, sw); in st_framebuffer_add_renderbuffer()
359 st_visual_to_context_mode(const struct st_visual *visual, in st_visual_to_context_mode() argument
364 if (st_visual_have_buffers(visual, ST_ATTACHMENT_BACK_LEFT_MASK)) in st_visual_to_context_mode()
367 if (st_visual_have_buffers(visual, in st_visual_to_context_mode()
371 if (visual->color_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
375 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
378 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
381 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
384 util_format_get_component_bits(visual->color_format, in st_visual_to_context_mode()
389 mode->sRGBCapable = util_format_is_srgb(visual->color_format); in st_visual_to_context_mode()
392 if (visual->depth_stencil_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
394 util_format_get_component_bits(visual->depth_stencil_format, in st_visual_to_context_mode()
397 util_format_get_component_bits(visual->depth_stencil_format, in st_visual_to_context_mode()
404 if (visual->accum_format != PIPE_FORMAT_NONE) { in st_visual_to_context_mode()
408 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
411 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
414 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
417 util_format_get_component_bits(visual->accum_format, in st_visual_to_context_mode()
421 if (visual->samples > 1) { in st_visual_to_context_mode()
423 mode->samples = visual->samples; in st_visual_to_context_mode()
446 st_visual_to_context_mode(stfbi->visual, &mode); in st_framebuffer_create()
469 util_format_srgb(stfbi->visual->color_format); in st_framebuffer_create()
474 PIPE_TEXTURE_2D, stfbi->visual->samples, in st_framebuffer_create()
894 st_visual_to_context_mode(&attribs->visual, &mode); in st_api_create_context()