Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_wide_line.c52 const float half_width = 0.5f * stage->draw->rasterizer->line_width; in wideline_line() local
83 pos0[1] = pos0[1] - half_width - bias; in wideline_line()
84 pos1[1] = pos1[1] + half_width - bias; in wideline_line()
85 pos2[1] = pos2[1] - half_width - bias; in wideline_line()
86 pos3[1] = pos3[1] + half_width - bias; in wideline_line()
106 pos0[0] = pos0[0] - half_width + bias; in wideline_line()
107 pos1[0] = pos1[0] + half_width + bias; in wideline_line()
108 pos2[0] = pos2[0] - half_width + bias; in wideline_line()
109 pos3[0] = pos3[0] + half_width + bias; in wideline_line()
Ddraw_pipe_aaline.c378 const float half_width = aaline->half_line_width; in aaline_line() local
417 t_w = half_width; in aaline_line()
464 ASSIGN_4V(tex, -half_width, half_width, -half_length, half_length); in aaline_line()
467 ASSIGN_4V(tex, half_width, half_width, -half_length, half_length); in aaline_line()
470 ASSIGN_4V(tex, -half_width, half_width, half_length, half_length); in aaline_line()
473 ASSIGN_4V(tex, half_width, half_width, half_length, half_length); in aaline_line()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DRasterizer.cpp71 float half_width = width / 2.0f; in SetViewports() local
75 states[i].scale[0] = half_width; in SetViewports()
79 states[i].translate[0] = half_width + x; in SetViewports()
/third_party/mesa3d/src/gallium/tests/graw/
Dshader-leak.c56 float half_width = (float)width / 2.0f; in set_viewport() local
61 vp.scale[0] = half_width; in set_viewport()
65 vp.translate[0] = half_width + x; in set_viewport()
Dtri-gs.c57 float half_width = (float)width / 2.0f; in set_viewport() local
62 vp.scale[0] = half_width; in set_viewport()
66 vp.translate[0] = half_width + x; in set_viewport()
Dtri-instanced.c86 float half_width = (float)width / 2.0f; in set_viewport() local
91 vp.scale[0] = half_width; in set_viewport()
95 vp.translate[0] = half_width + x; in set_viewport()
Dgraw_util.h191 float half_width = width / 2.0f; in graw_util_viewport() local
196 vp.scale[0] = half_width; in graw_util_viewport()
200 vp.translate[0] = half_width + x; in graw_util_viewport()
Dquad-sample.c66 float half_width = (float)width / 2.0f; in set_viewport() local
71 vp.scale[0] = half_width; in set_viewport()
75 vp.translate[0] = half_width + x; in set_viewport()
Dfs-test.c138 float half_width = (float)width / 2.0f; in set_viewport() local
143 vp.scale[0] = half_width; in set_viewport()
147 vp.translate[0] = half_width + x; in set_viewport()
Dvs-test.c118 float half_width = (float)width / 2.0f; in set_viewport() local
123 vp.scale[0] = half_width; in set_viewport()
127 vp.translate[0] = half_width + x; in set_viewport()
Dgs-test.c196 float half_width = (float)width / 2.0f; in set_viewport() local
201 vp.scale[0] = half_width; in set_viewport()
205 vp.translate[0] = half_width + x; in set_viewport()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Ddfs.c1334 int half_width; in hostapd_is_dfs_overlap() local
1345 half_width = 10; in hostapd_is_dfs_overlap()
1348 half_width = 20; in hostapd_is_dfs_overlap()
1352 half_width = 40; in hostapd_is_dfs_overlap()
1355 half_width = 80; in hostapd_is_dfs_overlap()
1373 if (center_freq - chan->freq < half_width && in hostapd_is_dfs_overlap()
1374 chan->freq - center_freq < half_width) in hostapd_is_dfs_overlap()
1379 center_freq - half_width, center_freq + half_width, in hostapd_is_dfs_overlap()
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_builder.h515 const unsigned half_width = dispatch_width() / 2; in emit_scan() local
516 const fs_builder ubld = exec_all().group(half_width, 0); in emit_scan()
518 dst_reg right = horiz_offset(tmp, half_width); in emit_scan()
521 if (cluster_size > half_width) { in emit_scan()
523 half_width - 1, 0, half_width, 1); in emit_scan()
/third_party/mesa3d/src/gallium/tests/trivial/
Dtri.c176 float half_width = (float)WIDTH / 2.0f; in init_prog() local
189 p->viewport.scale[0] = half_width; in init_prog()
193 p->viewport.translate[0] = half_width + x; in init_prog()
Dquad-tex.c233 float half_width = (float)WIDTH / 2.0f; in init_prog() local
246 p->viewport.scale[0] = half_width; in init_prog()
250 p->viewport.translate[0] = half_width + x; in init_prog()
/third_party/mesa3d/src/mesa/main/
Dviewport.c568 float half_width = 0.5f * ctx->ViewportArray[i].Width; in _mesa_get_viewport_xform() local
573 scale[0] = half_width; in _mesa_get_viewport_xform()
574 translate[0] = half_width + x; in _mesa_get_viewport_xform()
/third_party/mesa3d/src/amd/vulkan/
Dsi_cmd_buffer.c673 float half_width = 0.5f * viewport->width; in radv_get_viewport_xform() local
678 scale[0] = half_width; in radv_get_viewport_xform()
679 translate[0] = half_width + x; in radv_get_viewport_xform()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_arit.c1306 unsigned half_width = bld->type.width/2; in lp_build_lerp_simple() local
1331 x = lp_build_add(bld, x, lp_build_shr_imm(bld, x, half_width - 1)); in lp_build_lerp_simple()
1349 res = lp_build_shr_imm(bld, res, half_width); in lp_build_lerp_simple()
1397 low_bits = lp_build_const_int_vec(bld->gallivm, bld->type, (1 << half_width) - 1); in lp_build_lerp_simple()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_cmd_buffer.c1900 float half_width = 0.5f * viewport->width; in v3dv_viewport_compute_xform() local
1905 scale[0] = half_width; in v3dv_viewport_compute_xform()
1906 translate[0] = half_width + x; in v3dv_viewport_compute_xform()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c600 float half_width = 0.5f * viewport->width; in get_viewport_xform() local
603 state->viewports[idx].scale[0] = half_width; in get_viewport_xform()
604 state->viewports[idx].translate[0] = half_width + x; in get_viewport_xform()