Home
last modified time | relevance | path

Searched refs:fb_height (Results 1 – 25 of 33) sorted by relevance

12

/third_party/glfw/tests/
Dcursor.c256 int wnd_width, wnd_height, fb_width, fb_height; in main() local
260 glfwGetFramebufferSize(window, &fb_width, &fb_height); in main()
264 glViewport(0, 0, fb_width, fb_height); in main()
268 glOrtho(0.f, fb_width, 0.f, fb_height, 0.f, 1.f); in main()
271 glVertex2f(0.f, (GLfloat) (fb_height - cursor_y * scale)); in main()
272 glVertex2f((GLfloat) fb_width, (GLfloat) (fb_height - cursor_y * scale)); in main()
274 glVertex2f((GLfloat) cursor_x * scale, (GLfloat) fb_height); in main()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_opengl2.cpp108 static void ImGui_ImplOpenGL2_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height) in ImGui_ImplOpenGL2_SetupRenderState() argument
142 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL2_SetupRenderState()
159 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL2_RenderDrawData() local
160 if (fb_width == 0 || fb_height == 0) in ImGui_ImplOpenGL2_RenderDrawData()
173 ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); in ImGui_ImplOpenGL2_RenderDrawData()
197 ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); in ImGui_ImplOpenGL2_RenderDrawData()
210 …glScissor((int)clip_min.x, (int)(fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(cl… in ImGui_ImplOpenGL2_RenderDrawData()
Dimgui_impl_sdlrenderer.cpp115 int fb_height = (int)(draw_data->DisplaySize.y * render_scale.y); in ImGui_ImplSDLRenderer_RenderDrawData() local
116 if (fb_width == 0 || fb_height == 0) in ImGui_ImplSDLRenderer_RenderDrawData()
163 if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } in ImGui_ImplSDLRenderer_RenderDrawData()
Dimgui_impl_opengl3.cpp291 static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, … in ImGui_ImplOpenGL3_SetupRenderState() argument
324 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL3_SetupRenderState()
371 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() local
372 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplOpenGL3_RenderDrawData()
416 ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); in ImGui_ImplOpenGL3_RenderDrawData()
439 … ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); in ImGui_ImplOpenGL3_RenderDrawData()
452 …glScissor((int)clip_min.x, (int)(fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(cl… in ImGui_ImplOpenGL3_RenderDrawData()
Dimgui_impl_vulkan.cpp374 …ommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers* rb, int fb_width, int fb_height) in ImGui_ImplVulkan_SetupRenderState() argument
400 viewport.height = (float)fb_height; in ImGui_ImplVulkan_SetupRenderState()
425 int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); in ImGui_ImplVulkan_RenderDrawData() local
426 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplVulkan_RenderDrawData()
486 ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); in ImGui_ImplVulkan_RenderDrawData()
507 … ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); in ImGui_ImplVulkan_RenderDrawData()
521 if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } in ImGui_ImplVulkan_RenderDrawData()
Dimgui_impl_metal.mm466 int fb_height = (int)(drawData->DisplaySize.y * drawData->FramebufferScale.y);
467 if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0)
515 if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; }
/third_party/mesa3d/src/panfrost/lib/
Dpan_encoder.h54 unsigned fb_width, unsigned fb_height, in panfrost_tiler_get_polygon_list_size() argument
62 panfrost_choose_hierarchy_mask(fb_width, fb_height, 1, hierarchy); in panfrost_tiler_get_polygon_list_size()
64 return panfrost_tiler_full_size(fb_width, fb_height, hierarchy_mask, hierarchy) + in panfrost_tiler_get_polygon_list_size()
65 panfrost_tiler_header_size(fb_width, fb_height, hierarchy_mask, hierarchy); in panfrost_tiler_get_polygon_list_size()
Dpan_cs.h172 unsigned fb_width, unsigned fb_height,
Dpan_cs.c952 unsigned fb_width, unsigned fb_height, in GENX()
970 if (MAX2(fb_width, fb_height) >= 4096) in GENX()
974 tiler.fb_height = fb_height; in GENX()
/third_party/mesa3d/src/intel/tools/imgui/
Dimgui_impl_opengl3.cpp105 int fb_height = (int)(draw_data->DisplaySize.y * io.DisplayFramebufferScale.y); in ImGui_ImplOpenGL3_RenderDrawData() local
106 if (fb_width <= 0 || fb_height <= 0) in ImGui_ImplOpenGL3_RenderDrawData()
143 glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); in ImGui_ImplOpenGL3_RenderDrawData()
197 …if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0… in ImGui_ImplOpenGL3_RenderDrawData()
200 …glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int… in ImGui_ImplOpenGL3_RenderDrawData()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_blit.c50 float fb_width = dst->width, fb_height = dst->height; in lima_pack_blit_cmd() local
80 fb_height = job->key.cbuf->height; in lima_pack_blit_cmd()
83 fb_height = job->key.zsbuf->height; in lima_pack_blit_cmd()
146 PLBU_CMD_VIEWPORT_TOP(fui(fb_height)); in lima_pack_blit_cmd()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c417 float fb_height = (float) svga->curr.framebuffer.height; in get_viewport_prescale() local
505 if (fy + fh > fb_height) { in get_viewport_prescale()
506 prescale->scale[1] *= fh / (fb_height - fy); in get_viewport_prescale()
508 float in = fb_height - fy; /* number of vp pixels inside view */ in get_viewport_prescale()
509 float out = fy + fh - fb_height; /* number of vp pixels out of view */ in get_viewport_prescale()
513 prescale->translate[1] -= fy * (fh / (fb_height - fy)); in get_viewport_prescale()
516 fh = fb_height - fy; in get_viewport_prescale()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_cb_bitmap.c259 st->state.fb_height, in setup_render_state()
301 const float fb_height = (float) st->state.fb_height; in draw_bitmap_quad() local
309 const float clip_y0 = y0 / fb_height * 2.0f - 1.0f; in draw_bitmap_quad()
311 const float clip_y1 = y1 / fb_height * 2.0f - 1.0f; in draw_bitmap_quad()
659 const float clip_y_scale = 2.0f / st->state.fb_height; in st_DrawAtlasBitmaps()
Dst_cb_clear.c232 const GLfloat fb_height = (GLfloat) fb->Height; in clear_with_quad() local
238 const GLfloat y0 = (GLfloat) ctx->DrawBuffer->_Ymin / fb_height * 2.0f - 1.0f; in clear_with_quad()
239 const GLfloat y1 = (GLfloat) ctx->DrawBuffer->_Ymax / fb_height * 2.0f - 1.0f; in clear_with_quad()
325 cso_set_viewport_dims(st->cso_context, fb_width, fb_height, in clear_with_quad()
Dst_cb_drawtex.c228 const GLfloat fb_height = (GLfloat)_mesa_geometric_height(fb); in st_DrawTex() local
231 const GLfloat clip_y0 = (GLfloat)(y0 / fb_height * 2.0 - 1.0); in st_DrawTex()
233 const GLfloat clip_y1 = (GLfloat)(y1 / fb_height * 2.0 - 1.0); in st_DrawTex()
Dst_atom_scissor.c52 const unsigned int fb_height = _mesa_geometric_height(fb); in st_update_scissor() local
64 scissor[i].maxy = fb_height; in st_update_scissor()
Dst_atom_viewport.c67 translate[1] = st->state.fb_height - translate[1]; in st_update_viewport()
Dst_atom_msaa.c93 st->screen, st->state.fb_height, samples, locations); in update_sample_locations()
Dst_atom_framebuffer.c218 st->state.fb_height = framebuffer.height; in st_update_framebuffer_state()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_framebuffer.c255 util_sample_locations_flip_y(struct pipe_screen *screen, unsigned fb_height, in util_sample_locations_flip_y() argument
265 shift = fb_height % grid_height; in util_sample_locations_flip_y()
Du_framebuffer.h68 util_sample_locations_flip_y(struct pipe_screen *screen, unsigned fb_height,
/third_party/glfw/examples/
Dsplitview.c409 int wnd_width, wnd_height, fb_width, fb_height; in cursorPosFun() local
413 glfwGetFramebufferSize(window, &fb_width, &fb_height); in cursorPosFun()
/third_party/vk-gl-cts/external/amber/src/src/
Dpipeline.h246 void SetFramebufferHeight(uint32_t fb_height) { in SetFramebufferHeight() argument
247 fb_height_ = fb_height; in SetFramebufferHeight()
/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_private.h84 unsigned fb_width, fb_height; member
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_priv.h101 unsigned int fb_height; member

12