/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_gmem.c | 215 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd4_emit_tile_gmem2mem() local 253 OUT_RING(ring, A4XX_GRAS_CL_VPORT_XOFFSET_0((float)pfb->width / 2.0f)); in fd4_emit_tile_gmem2mem() 254 OUT_RING(ring, A4XX_GRAS_CL_VPORT_XSCALE_0((float)pfb->width / 2.0f)); in fd4_emit_tile_gmem2mem() 255 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YOFFSET_0((float)pfb->height / 2.0f)); in fd4_emit_tile_gmem2mem() 256 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YSCALE_0(-(float)pfb->height / 2.0f)); in fd4_emit_tile_gmem2mem() 276 OUT_RING(ring, A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X(pfb->width - 1) | in fd4_emit_tile_gmem2mem() 277 A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(pfb->height - 1)); in fd4_emit_tile_gmem2mem() 289 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_gmem2mem() 291 emit_gmem2mem_surf(batch, false, gmem->zsbuf_base[0], pfb->zsbuf); in fd4_emit_tile_gmem2mem() 293 emit_gmem2mem_surf(batch, true, gmem->zsbuf_base[1], pfb->zsbuf); in fd4_emit_tile_gmem2mem() [all …]
|
D | fd4_emit.c | 665 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local 669 mrt_comp[i] = ((i < pfb->nr_cbufs) && pfb->cbufs[i]) ? 0xf : 0; in fd4_emit_state() 685 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local 688 if (util_format_is_pure_integer(pipe_surface_format(pfb->cbufs[0]))) in fd4_emit_state() 839 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local 840 unsigned n = pfb->nr_cbufs; in fd4_emit_state() 842 if (pfb->zsbuf) in fd4_emit_state() 844 fd4_program_emit(ring, emit, n, pfb->cbufs); in fd4_emit_state()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_gmem.c | 382 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd3_emit_tile_gmem2mem() local 423 OUT_RING(ring, A3XX_GRAS_CL_VPORT_XOFFSET((float)pfb->width / 2.0f - 0.5f)); in fd3_emit_tile_gmem2mem() 424 OUT_RING(ring, A3XX_GRAS_CL_VPORT_XSCALE((float)pfb->width / 2.0f)); in fd3_emit_tile_gmem2mem() 425 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YOFFSET((float)pfb->height / 2.0f - 0.5f)); in fd3_emit_tile_gmem2mem() 426 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YSCALE(-(float)pfb->height / 2.0f)); in fd3_emit_tile_gmem2mem() 457 OUT_RING(ring, A3XX_GRAS_SC_WINDOW_SCISSOR_BR_X(pfb->width - 1) | in fd3_emit_tile_gmem2mem() 458 A3XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(pfb->height - 1)); in fd3_emit_tile_gmem2mem() 470 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_gmem2mem() 473 gmem->zsbuf_base[0], pfb->zsbuf); in fd3_emit_tile_gmem2mem() 476 gmem->zsbuf_base[1], pfb->zsbuf); in fd3_emit_tile_gmem2mem() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.c | 65 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in batch_draw_tracking_for_dirty_bits() local 70 if (fd_resource(pfb->zsbuf->texture)->valid) { in batch_draw_tracking_for_dirty_bits() 75 if (pfb->zsbuf->texture->format == PIPE_FORMAT_Z24_UNORM_S8_UINT) in batch_draw_tracking_for_dirty_bits() 83 resource_written(batch, pfb->zsbuf->texture); in batch_draw_tracking_for_dirty_bits() 85 resource_read(batch, pfb->zsbuf->texture); in batch_draw_tracking_for_dirty_bits() 90 if (fd_resource(pfb->zsbuf->texture)->valid) { in batch_draw_tracking_for_dirty_bits() 95 if (pfb->zsbuf->texture->format == PIPE_FORMAT_Z24_UNORM_S8_UINT) in batch_draw_tracking_for_dirty_bits() 102 resource_written(batch, pfb->zsbuf->texture); in batch_draw_tracking_for_dirty_bits() 107 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in batch_draw_tracking_for_dirty_bits() 110 if (!pfb->cbufs[i]) in batch_draw_tracking_for_dirty_bits() [all …]
|
D | freedreno_gmem.c | 475 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in gmem_key_init() local 476 bool has_zs = pfb->zsbuf && in gmem_key_init() 482 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in gmem_key_init() 492 key->nr_cbufs = pfb->nr_cbufs; in gmem_key_init() 493 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in gmem_key_init() 494 if (pfb->cbufs[i]) in gmem_key_init() 495 key->cbuf_cpp[i] = util_format_get_blocksize(pfb->cbufs[i]->format); in gmem_key_init() 499 key->cbuf_cpp[i] *= pfb->samples; in gmem_key_init() 508 key->width = pfb->width; in gmem_key_init() 509 key->height = pfb->height; in gmem_key_init() [all …]
|
D | freedreno_blitter.c | 193 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd_blitter_clear() local 204 util_blitter_common_clear_setup(blitter, pfb->width, pfb->height, buffers, in fd_blitter_clear() 216 unsigned rs_idx = pfb->samples > 1 ? 1 : 0; in fd_blitter_clear() 225 .multisample = pfb->samples > 1, in fd_blitter_clear() 232 .scale = {0.5f * pfb->width, -0.5f * pfb->height, depth}, in fd_blitter_clear() 233 .translate = {0.5f * pfb->width, 0.5f * pfb->height, 0.0f}, in fd_blitter_clear() 242 if (pfb->layers > 1) in fd_blitter_clear() 260 .instance_count = MAX2(1, pfb->layers), in fd_blitter_clear() 269 assert(util_framebuffer_state_equal(pfb, &ctx->framebuffer)); in fd_blitter_clear()
|
D | freedreno_batch_cache.c | 497 const struct pipe_framebuffer_state *pfb) in fd_batch_from_fb() argument 499 unsigned idx = 0, n = pfb->nr_cbufs + (pfb->zsbuf ? 1 : 0); in fd_batch_from_fb() 502 key->width = pfb->width; in fd_batch_from_fb() 503 key->height = pfb->height; in fd_batch_from_fb() 504 key->layers = pfb->layers; in fd_batch_from_fb() 505 key->samples = util_framebuffer_get_num_samples(pfb); in fd_batch_from_fb() 508 if (pfb->zsbuf) in fd_batch_from_fb() 509 key_surf(key, idx++, 0, pfb->zsbuf); in fd_batch_from_fb() 511 for (unsigned i = 0; i < pfb->nr_cbufs; i++) in fd_batch_from_fb() 512 if (pfb->cbufs[i]) in fd_batch_from_fb() [all …]
|
D | freedreno_autotune.c | 158 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fallback_use_bypass() local 162 (batch->num_draws > 5) || (pfb->samples > 1)) { in fallback_use_bypass() 176 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd_autotune_use_bypass() local 189 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in fd_autotune_use_bypass() 194 if (pfb->cbufs[i] && pfb->cbufs[i]->nr_samples) in fd_autotune_use_bypass()
|
D | freedreno_util.h | 313 fd_half_precision(struct pipe_framebuffer_state *pfb) in fd_half_precision() argument 317 for (i = 0; i < pfb->nr_cbufs; i++) in fd_half_precision() 318 if (!fd_surface_half_precision(pfb->cbufs[i])) in fd_half_precision()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_gmem.c | 74 emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb, in emit_mrt() argument 87 for (i = 0; i < pfb->nr_cbufs; i++) { in emit_mrt() 96 if (!pfb->cbufs[i]) in emit_mrt() 99 struct pipe_surface *psurf = pfb->cbufs[i]; in emit_mrt() 145 if (pfb->zsbuf) in emit_mrt() 146 max_layer_index = pfb->zsbuf->u.tex.last_layer - pfb->zsbuf->u.tex.first_layer; in emit_mrt() 265 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in patch_fb_read_gmem() local 266 struct pipe_surface *psurf = pfb->cbufs[0]; in patch_fb_read_gmem() 304 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in patch_fb_read_sysmem() local 305 struct pipe_surface *psurf = pfb->cbufs[0]; in patch_fb_read_sysmem() [all …]
|
D | fd6_context.c | 127 const struct pipe_framebuffer_state *pfb) in fd6_set_framebuffer_state() argument 130 if (pfb->zsbuf) in fd6_set_framebuffer_state() 131 validate_surface(pctx, pfb->zsbuf); in fd6_set_framebuffer_state() 133 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in fd6_set_framebuffer_state() 134 if (!pfb->cbufs[i]) in fd6_set_framebuffer_state() 136 validate_surface(pctx, pfb->cbufs[i]); in fd6_set_framebuffer_state() 139 fd_set_framebuffer_state(pctx, pfb); in fd6_set_framebuffer_state()
|
D | fd6_emit.c | 250 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd6_emit_fb_tex() local 251 struct pipe_surface *psurf = pfb->cbufs[0]; in fd6_emit_fb_tex() 255 OUT_RING(state, A6XX_TEX_CONST_1_WIDTH(pfb->width) | in fd6_emit_fb_tex() 256 A6XX_TEX_CONST_1_HEIGHT(pfb->height)); in fd6_emit_fb_tex() 597 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in compute_ztest_mode() local 608 (zsa->writes_zs || !pfb->zsbuf)) { in compute_ztest_mode() 630 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in compute_lrz_state() local 634 if (!pfb->zsbuf) { in compute_lrz_state() 644 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in compute_lrz_state() 762 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in build_prog_fb_rast() local [all …]
|
D | fd6_draw.c | 471 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd6_clear() local 472 const bool has_depth = pfb->zsbuf; in fd6_clear() 476 if (pfb->samples > 1) in fd6_clear() 496 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd6_clear() 497 if (zsbuf->lrz && !is_z32(pfb->zsbuf->format)) { in fd6_clear()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_trace_gallium.c | 77 trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuffer_state *pfb) in trace_framebuffer_state() argument 82 trace_framebuffer(ut, cs, pfb); in trace_framebuffer_state() 84 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in trace_framebuffer_state() 85 if (pfb->cbufs[i]) { in trace_framebuffer_state() 86 trace_surface(ut, cs, pfb->cbufs[i]); in trace_framebuffer_state() 89 if (pfb->zsbuf) { in trace_framebuffer_state() 90 trace_surface(ut, cs, pfb->zsbuf); in trace_framebuffer_state()
|
D | u_trace_gallium.h | 51 trace_framebuffer_state(struct u_trace *ut, void *cs, const struct pipe_framebuffer_state *pfb);
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_gmem.c | 398 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd5_emit_tile_init() local 424 emit_zs(ring, pfb->zsbuf, batch->gmem_state); in fd5_emit_tile_init() 425 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, batch->gmem_state); in fd5_emit_tile_init() 569 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd5_emit_tile_mem2gmem() local 575 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, NULL); in fd5_emit_tile_mem2gmem() 584 for (i = 0; i < pfb->nr_cbufs; i++) { in fd5_emit_tile_mem2gmem() 585 if (!pfb->cbufs[i]) in fd5_emit_tile_mem2gmem() 589 emit_mem2gmem_surf(batch, gmem->cbuf_base[i], pfb->cbufs[i], in fd5_emit_tile_mem2gmem() 596 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_mem2gmem() 599 emit_mem2gmem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf, BLIT_ZS); in fd5_emit_tile_mem2gmem() [all …]
|
D | fd5_draw.c | 241 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd5_clear() local 244 is_z32(pfb->zsbuf->format)) in fd5_clear() 250 for (int i = 0; i < pfb->nr_cbufs; i++) { in fd5_clear() 253 if (!pfb->cbufs[i]) in fd5_clear() 259 enum pipe_format pfmt = pfb->cbufs[i]->format; in fd5_clear() 309 if (pfb->zsbuf && (buffers & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) { in fd5_clear() 310 uint32_t clear = util_pack_z_stencil(pfb->zsbuf->format, depth, stencil); in fd5_clear() 331 if (pfb->zsbuf && (buffers & PIPE_CLEAR_DEPTH)) { in fd5_clear() 332 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd5_clear()
|
D | fd5_emit.c | 527 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd5_emit_state() local 539 mrt_comp[i] = ((i < pfb->nr_cbufs) && pfb->cbufs[i]) ? 0xf : 0; in fd5_emit_state() 557 if (util_format_is_pure_integer(pipe_surface_format(pfb->cbufs[0]))) in fd5_emit_state() 571 if (pfb->zsbuf) { in fd5_emit_state() 572 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_state() 662 A5XX_GRAS_SU_CNTL_LINE_MODE(pfb->samples > 1 ? in fd5_emit_state() 704 unsigned nr = pfb->nr_cbufs; in fd5_emit_state() 792 enum pipe_format format = pipe_surface_format(pfb->cbufs[i]); in fd5_emit_state()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_blend.c | 127 struct pipe_framebuffer_state *pfb = &ctx->framebuffer_s; in etna_update_blend() local 134 if (pfb->cbufs[0] && in etna_update_blend() 135 translate_pe_format_rb_swap(pfb->cbufs[0]->format)) { in etna_update_blend() 149 if (pfb->cbufs[0]) in etna_update_blend() 150 desc = util_format_description(pfb->cbufs[0]->format); in etna_update_blend() 151 bool full_overwrite = !pfb->cbufs[0] || ((blend->fo_allowed && in etna_update_blend() 174 struct pipe_framebuffer_state *pfb = &ctx->framebuffer_s; in etna_update_blend_color() local 176 bool rb_swap = (pfb->cbufs[0] && translate_pe_format_rb_swap(pfb->cbufs[0]->format)); in etna_update_blend_color()
|
D | etnaviv_context.c | 231 struct pipe_framebuffer_state *pfb = &ctx->framebuffer_s; in etna_draw_vbo() local 296 if (pfb->cbufs[0]) in etna_draw_vbo() 297 key.frag_rb_swap = !!translate_pe_format_rb_swap(pfb->cbufs[0]->format); in etna_draw_vbo() 313 resource_written(ctx, pfb->zsbuf->texture); in etna_draw_vbo() 316 resource_written(ctx, pfb->zsbuf->texture); in etna_draw_vbo() 320 for (i = 0; i < pfb->nr_cbufs; i++) { in etna_draw_vbo() 323 if (!pfb->cbufs[i]) in etna_draw_vbo() 326 surf = pfb->cbufs[i]->texture; in etna_draw_vbo()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_gmem.c | 141 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in prepare_tile_fini_ib() local 189 OUT_RING(ring, xy2d(pfb->width, pfb->height)); /* PA_SC_WINDOW_SCISSOR_BR */ in prepare_tile_fini_ib() 207 emit_gmem2mem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf); in prepare_tile_fini_ib() 210 emit_gmem2mem_surf(batch, gmem->cbuf_base[0], pfb->cbufs[0]); in prepare_tile_fini_ib() 287 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd2_emit_tile_mem2gmem() local 301 x0 = ((float)tile->xoff) / ((float)pfb->width); in fd2_emit_tile_mem2gmem() 302 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd2_emit_tile_mem2gmem() 303 y0 = ((float)tile->yoff) / ((float)pfb->height); in fd2_emit_tile_mem2gmem() 304 y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height); in fd2_emit_tile_mem2gmem() 381 emit_mem2gmem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf); in fd2_emit_tile_mem2gmem() [all …]
|
D | fd2_draw.c | 435 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd2_clear_fast() local 437 enum pipe_format format = pipe_surface_format(pfb->cbufs[0]); in fd2_clear_fast() 453 if ((pfb->zsbuf->format == PIPE_FORMAT_Z24_UNORM_S8_UINT || in fd2_clear_fast() 454 pfb->zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) && in fd2_clear_fast() 458 depth_size = fd_pipe2depth(pfb->zsbuf->format) == DEPTHX_24_8; in fd2_clear_fast()
|
/third_party/skia/third_party/externals/freetype/src/type1/ |
D | module.mk | 20 $(ECHO_DRIVER)type1 $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECH…
|
/third_party/freetype/src/type1/ |
D | module.mk | 20 $(ECHO_DRIVER)type1 $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECH…
|
/third_party/flutter/skia/third_party/externals/freetype/src/type1/ |
D | module.mk | 20 $(ECHO_DRIVER)type1 $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECH…
|