/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_emit.c | 208 OUT_RING(ring, fui(ctx->viewport.translate[0])); in fd2_emit_state_binning() 209 OUT_RING(ring, fui(ctx->viewport.translate[1])); in fd2_emit_state_binning() 210 OUT_RING(ring, fui(ctx->viewport.translate[2])); in fd2_emit_state_binning() 211 OUT_RING(ring, fui(0.0f)); in fd2_emit_state_binning() 212 OUT_RING(ring, fui(ctx->viewport.scale[0])); in fd2_emit_state_binning() 213 OUT_RING(ring, fui(ctx->viewport.scale[1])); in fd2_emit_state_binning() 214 OUT_RING(ring, fui(ctx->viewport.scale[2])); in fd2_emit_state_binning() 215 OUT_RING(ring, fui(0.0f)); in fd2_emit_state_binning() 294 OUT_RING(ring, fui(1.0)); /* PA_CL_GB_VERT_CLIP_ADJ */ in fd2_emit_state() 295 OUT_RING(ring, fui(1.0)); /* PA_CL_GB_VERT_DISC_ADJ */ in fd2_emit_state() [all …]
|
D | fd2_draw.c | 129 OUT_RING(ring, fui(ctx->batch->num_vertices)); in draw_impl() 130 OUT_RING(ring, fui(0.0f)); in draw_impl() 131 OUT_RING(ring, fui(0.0f)); in draw_impl() 132 OUT_RING(ring, fui(0.0f)); in draw_impl() 383 OUT_RING(ring, fui((float)(color_clear >> 0 & 0xff) * sc)); in clear_fast() 384 OUT_RING(ring, fui((float)(color_clear >> 8 & 0xff) * sc)); in clear_fast() 385 OUT_RING(ring, fui((float)(color_clear >> 16 & 0xff) * sc)); in clear_fast() 386 OUT_RING(ring, fui((float)(color_clear >> 24 & 0xff) * sc)); in clear_fast() 395 OUT_RING(ring, fui(0.0f)); in clear_fast() 396 OUT_RING(ring, fui(depth)); in clear_fast() [all …]
|
D | fd2_gmem.c | 197 OUT_RING(ring, fui((float)gmem->bin_w / 2.0)); /* XSCALE */ in prepare_tile_fini_ib() 198 OUT_RING(ring, fui((float)gmem->bin_w / 2.0)); /* XOFFSET */ in prepare_tile_fini_ib() 199 OUT_RING(ring, fui((float)gmem->bin_h / 2.0)); /* YSCALE */ in prepare_tile_fini_ib() 200 OUT_RING(ring, fui((float)gmem->bin_h / 2.0)); /* YOFFSET */ in prepare_tile_fini_ib() 307 OUT_RING(ring, fui(x0)); in fd2_emit_tile_mem2gmem() 308 OUT_RING(ring, fui(y0)); in fd2_emit_tile_mem2gmem() 309 OUT_RING(ring, fui(x1)); in fd2_emit_tile_mem2gmem() 310 OUT_RING(ring, fui(y0)); in fd2_emit_tile_mem2gmem() 311 OUT_RING(ring, fui(x0)); in fd2_emit_tile_mem2gmem() 312 OUT_RING(ring, fui(y1)); in fd2_emit_tile_mem2gmem() [all …]
|
D | fd2_zsa.c | 90 so->rb_alpha_ref = fui(cso->alpha_ref_value); in fd2_zsa_state_create()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_prim_emit.c | 77 OUT_BATCH(fui(attrib[0])); in emit_hw_vertex() 81 OUT_BATCH(fui(attrib[0])); in emit_hw_vertex() 82 OUT_BATCH(fui(attrib[1])); in emit_hw_vertex() 86 OUT_BATCH(fui(attrib[0])); in emit_hw_vertex() 87 OUT_BATCH(fui(attrib[1])); in emit_hw_vertex() 88 OUT_BATCH(fui(attrib[2])); in emit_hw_vertex() 92 OUT_BATCH(fui(attrib[0])); in emit_hw_vertex() 93 OUT_BATCH(fui(attrib[1])); in emit_hw_vertex() 94 OUT_BATCH(fui(attrib[2])); in emit_hw_vertex() 95 OUT_BATCH(fui(attrib[3])); in emit_hw_vertex()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_viewport.c | 230 radeon_emit(cs, fui(guardband_y)); /* R_028BE8_PA_CL_GB_VERT_CLIP_ADJ */ in r600_emit_guardband() 231 radeon_emit(cs, fui(1.0)); /* R_028BEC_PA_CL_GB_VERT_DISC_ADJ */ in r600_emit_guardband() 232 radeon_emit(cs, fui(guardband_x)); /* R_028BF0_PA_CL_GB_HORZ_CLIP_ADJ */ in r600_emit_guardband() 233 radeon_emit(cs, fui(1.0)); /* R_028BF4_PA_CL_GB_HORZ_DISC_ADJ */ in r600_emit_guardband() 311 radeon_emit(cs, fui(state->scale[0])); in r600_emit_one_viewport() 312 radeon_emit(cs, fui(state->translate[0])); in r600_emit_one_viewport() 313 radeon_emit(cs, fui(state->scale[1])); in r600_emit_one_viewport() 314 radeon_emit(cs, fui(state->translate[1])); in r600_emit_one_viewport() 315 radeon_emit(cs, fui(state->scale[2])); in r600_emit_one_viewport() 316 radeon_emit(cs, fui(state->translate[2])); in r600_emit_one_viewport() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_rasterizer.c | 56 cs->PA_LINE_WIDTH = fui(so->line_width / 2.0f); in etna_rasterizer_state_create() 57 cs->PA_POINT_SIZE = fui(so->point_size / 2.0f); in etna_rasterizer_state_create() 58 cs->SE_DEPTH_SCALE = fui(so->offset_scale); in etna_rasterizer_state_create() 59 cs->SE_DEPTH_BIAS = fui((so->offset_units / 65535.0f) * 2.0f); in etna_rasterizer_state_create()
|
D | etnaviv_state.c | 270 cs->PE_DEPTH_NORMALIZE = fui(exp2f(depth_bits) - 1.0f); in etna_set_framebuffer_state() 409 cs->PA_VIEWPORT_SCALE_Z = fui(vs->scale[2] * 2.0f); in etna_set_viewport_states() 412 cs->PA_VIEWPORT_OFFSET_Z = fui(vs->translate[2] - vs->scale[2]); in etna_set_viewport_states() 422 cs->PE_DEPTH_NEAR = fui(0.0); /* not affected if depth mode is Z (as in GL) */ in etna_set_viewport_states() 423 cs->PE_DEPTH_FAR = fui(1.0); in etna_set_viewport_states() 587 cs->NFE_GENERIC_ATTRIB_SCALE[idx] = fui(1.0f); in etna_vertex_elements_state_create()
|
D | etnaviv_asm.h | 152 uint32_t bits = fui(x); in etna_immediate_float()
|
D | etnaviv_uniforms.c | 60 return fui(1.0f / dim); in get_texrect_scale()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_viewport.c | 124 sctx->current_vs_state |= S_VS_STATE_SMALL_PRIM_PRECISION(fui(info.small_prim_precision) >> 23); in si_emit_cull_state() 361 SI_TRACKED_PA_CL_GB_VERT_CLIP_ADJ, fui(guardband_y), fui(discard_y), in si_emit_guardband() 362 fui(guardband_x), fui(discard_x)); in si_emit_guardband() 475 radeon_emit(fui(state->scale[0])); in si_emit_one_viewport() 476 radeon_emit(fui(state->translate[0])); in si_emit_one_viewport() 477 radeon_emit(fui(state->scale[1])); in si_emit_one_viewport() 478 radeon_emit(fui(state->translate[1])); in si_emit_one_viewport() 479 radeon_emit(fui(state->scale[2])); in si_emit_one_viewport() 480 radeon_emit(fui(state->translate[2])); in si_emit_one_viewport() 535 radeon_emit(fui(zmin)); in si_emit_depth_ranges() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_pack_color.h | 530 union fi fui; in util_pack_z() local 546 fui.f = (float)z; in util_pack_z() 547 return fui.ui; in util_pack_z() 573 union fi fui; in util_pack64_z() local 580 fui.f = (float)z; in util_pack64_z() 581 return fui.ui; in util_pack64_z()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_state.c | 169 SB_DATA (so, fui(cso->offset_scale)); in nv30_rasterizer_state_create() 170 SB_DATA (so, fui(cso->offset_units * 2.0)); in nv30_rasterizer_state_create() 186 SB_DATA (so, fui(cso->point_size)); in nv30_rasterizer_state_create() 230 SB_DATA (so, fui(cso->depth_bounds_min)); in nv30_zsa_state_create() 231 SB_DATA (so, fui(cso->depth_bounds_max)); in nv30_zsa_state_create()
|
D | nv30_screen.c | 721 PUSH_DATA (push, fui(0.0)); in nv30_screen_create() 722 PUSH_DATA (push, fui(0.0)); in nv30_screen_create() 723 PUSH_DATA (push, fui(1.0)); in nv30_screen_create()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_state.c | 258 SB_DATA (so, fui(cso->line_width)); in nv50_rasterizer_state_create() 274 SB_DATA (so, fui(cso->point_size)); in nv50_rasterizer_state_create() 312 SB_DATA (so, fui(cso->offset_scale)); in nv50_rasterizer_state_create() 314 SB_DATA (so, fui(cso->offset_units * 2.0f)); in nv50_rasterizer_state_create() 316 SB_DATA (so, fui(cso->offset_clamp)); in nv50_rasterizer_state_create() 383 SB_DATA (so, fui(cso->depth_bounds_min)); in nv50_zsa_state_create() 384 SB_DATA (so, fui(cso->depth_bounds_max)); in nv50_zsa_state_create() 424 SB_DATA (so, fui(cso->alpha_ref_value)); in nv50_zsa_state_create() 433 SB_DATA (so, fui(cso->alpha_ref_value)); in nv50_zsa_state_create() 582 so->tsc[4] = fui(cso->border_color.f[0]); in nv50_sampler_state_create() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_draw.cpp | 184 ptr[0] = fui(ctx->flip_y); in fill_state_vars() 188 ptr[0] = fui(1.0 / ctx->viewports[0].Width); in fill_state_vars() 189 ptr[1] = fui(1.0 / ctx->viewports[0].Height); in fill_state_vars() 190 ptr[2] = fui(ctx->gfx_pipeline_state.rast->base.point_size); in fill_state_vars() 191 ptr[3] = fui(D3D12_MAX_POINT_SIZE); in fill_state_vars() 199 ptr[0] = fui(2.0f * ctx->viewport_states[0].scale[2]); in fill_state_vars() 200 ptr[1] = fui(ctx->viewport_states[0].translate[2] - ctx->viewport_states[0].scale[2]); in fill_state_vars()
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_encode.c | 418 virgl_encoder_write_dword(ctx->cbuf, fui(dsa_state->alpha_ref_value)); in virgl_encode_dsa_state() 461 virgl_encoder_write_dword(ctx->cbuf, fui(state->point_size)); /* S1 */ in virgl_encode_rasterizer_state() 467 virgl_encoder_write_dword(ctx->cbuf, fui(state->line_width)); /* S4 */ in virgl_encode_rasterizer_state() 468 virgl_encoder_write_dword(ctx->cbuf, fui(state->offset_units)); /* S5 */ in virgl_encode_rasterizer_state() 469 virgl_encoder_write_dword(ctx->cbuf, fui(state->offset_scale)); /* S6 */ in virgl_encode_rasterizer_state() 470 virgl_encoder_write_dword(ctx->cbuf, fui(state->offset_clamp)); /* S7 */ in virgl_encode_rasterizer_state() 683 virgl_encoder_write_dword(ctx->cbuf, fui(states[v].scale[i])); in virgl_encoder_set_viewport_states() 685 virgl_encoder_write_dword(ctx->cbuf, fui(states[v].translate[i])); in virgl_encoder_set_viewport_states() 956 virgl_encoder_write_dword(ctx->cbuf, fui(state->lod_bias)); in virgl_encode_sampler_state() 957 virgl_encoder_write_dword(ctx->cbuf, fui(state->min_lod)); in virgl_encode_sampler_state() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_surface.c | 734 PUSH_DATA (push, fui(depth)); in nvc0_clear() 1386 *(vbuf++) = fui(0.0f); in nvc0_blit_3d() 1387 *(vbuf++) = fui(0.0f); in nvc0_blit_3d() 1388 *(vbuf++) = fui(x0); in nvc0_blit_3d() 1389 *(vbuf++) = fui(y0); in nvc0_blit_3d() 1390 *(vbuf++) = fui(z); in nvc0_blit_3d() 1392 *(vbuf++) = fui(32768.0f); in nvc0_blit_3d() 1393 *(vbuf++) = fui(0.0f); in nvc0_blit_3d() 1394 *(vbuf++) = fui(x1); in nvc0_blit_3d() 1395 *(vbuf++) = fui(y0); in nvc0_blit_3d() [all …]
|
D | nvc0_state.c | 242 SB_DATA (so, fui(cso->line_width)); in nvc0_rasterizer_state_create() 255 SB_DATA (so, fui(cso->point_size)); in nvc0_rasterizer_state_create() 304 SB_DATA (so, fui(cso->offset_scale)); in nvc0_rasterizer_state_create() 307 SB_DATA (so, fui(cso->offset_units * 2.0f)); in nvc0_rasterizer_state_create() 310 SB_DATA (so, fui(cso->offset_clamp)); in nvc0_rasterizer_state_create() 380 SB_DATA (so, fui(cso->depth_bounds_min)); in nvc0_zsa_state_create() 381 SB_DATA (so, fui(cso->depth_bounds_max)); in nvc0_zsa_state_create() 417 SB_DATA (so, fui(cso->alpha_ref_value)); in nvc0_zsa_state_create()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_draw.c | 330 PLBU_CMD_VIEWPORT_LEFT(fui(ctx->viewport.left)); in lima_pack_plbu_cmd() 331 PLBU_CMD_VIEWPORT_RIGHT(fui(ctx->viewport.right)); in lima_pack_plbu_cmd() 332 PLBU_CMD_VIEWPORT_BOTTOM(fui(ctx->viewport.bottom)); in lima_pack_plbu_cmd() 333 PLBU_CMD_VIEWPORT_TOP(fui(ctx->viewport.top)); in lima_pack_plbu_cmd() 377 PLBU_CMD_DEPTH_RANGE_NEAR(fui(ctx->viewport.near)); in lima_pack_plbu_cmd() 378 PLBU_CMD_DEPTH_RANGE_FAR(fui(ctx->viewport.far)); in lima_pack_plbu_cmd() 384 fui(ctx->rasterizer->base.point_size) : fui(ctx->rasterizer->base.line_width); in lima_pack_plbu_cmd()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_cl.h | 153 cl_u32(cl, fui(f)); in cl_f() 159 cl_aligned_u32(cl, fui(f)); in cl_aligned_f()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3d_cl.h | 173 cl_u32(cl, fui(f)); in cl_f() 179 cl_aligned_u32(cl, fui(f)); in cl_aligned_f()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_cb.h | 128 OUT_CB(fui(value));
|
D | r300_cs.h | 80 OUT_CS(fui(value))
|
/third_party/mesa3d/src/amd/vulkan/ |
D | si_cmd_buffer.c | 201 radeon_set_context_reg(cs, R_028A18_VGT_HOS_MAX_TESS_LEVEL, fui(64)); in si_emit_graphics() 203 radeon_set_context_reg(cs, R_028A1C_VGT_HOS_MIN_TESS_LEVEL, fui(0)); in si_emit_graphics() 247 radeon_set_context_reg(cs, R_0282D4_PA_SC_VPORT_ZMAX_0 + i * 8, fui(1.0)); in si_emit_graphics() 682 radeon_emit(cs, fui(guardband_y)); in si_write_scissors() 683 radeon_emit(cs, fui(1.0)); in si_write_scissors() 684 radeon_emit(cs, fui(guardband_x)); in si_write_scissors() 685 radeon_emit(cs, fui(1.0)); in si_write_scissors()
|