Home
last modified time | relevance | path

Searched refs:pfb (Results 1 – 25 of 44) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c192 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd4_emit_tile_gmem2mem() local
232 OUT_RING(ring, A4XX_GRAS_CL_VPORT_XOFFSET_0((float)pfb->width/2.0)); in fd4_emit_tile_gmem2mem()
233 OUT_RING(ring, A4XX_GRAS_CL_VPORT_XSCALE_0((float)pfb->width/2.0)); in fd4_emit_tile_gmem2mem()
234 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YOFFSET_0((float)pfb->height/2.0)); in fd4_emit_tile_gmem2mem()
235 OUT_RING(ring, A4XX_GRAS_CL_VPORT_YSCALE_0(-(float)pfb->height/2.0)); in fd4_emit_tile_gmem2mem()
256 OUT_RING(ring, A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X(pfb->width - 1) | in fd4_emit_tile_gmem2mem()
257 A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(pfb->height - 1)); in fd4_emit_tile_gmem2mem()
269 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_gmem2mem()
271 emit_gmem2mem_surf(batch, false, gmem->zsbuf_base[0], pfb->zsbuf); in fd4_emit_tile_gmem2mem()
273 emit_gmem2mem_surf(batch, true, gmem->zsbuf_base[1], pfb->zsbuf); in fd4_emit_tile_gmem2mem()
[all …]
Dfd4_emit.c526 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local
530 mrt_comp[i] = ((i < pfb->nr_cbufs) && pfb->cbufs[i]) ? 0xf : 0; in fd4_emit_state()
546 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local
549 if (util_format_is_pure_integer(pipe_surface_format(pfb->cbufs[0]))) in fd4_emit_state()
694 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd4_emit_state() local
695 unsigned n = pfb->nr_cbufs; in fd4_emit_state()
697 if (pfb->zsbuf) in fd4_emit_state()
699 fd4_program_emit(ring, emit, n, pfb->cbufs); in fd4_emit_state()
/external/igt-gpu-tools/tests/
Dkms_plane_cursor.c117 static void test_cursor_pos(data_t *data, igt_fb_t *pfb, igt_fb_t *ofb, in test_cursor_pos() argument
125 cr = igt_get_cairo_ctx(pfb->fd, pfb); in test_cursor_pos()
126 igt_paint_color(cr, 0, 0, pfb->width, pfb->height, 1.0, 1.0, 1.0); in test_cursor_pos()
132 igt_put_cairo_ctx(pfb->fd, pfb, cr); in test_cursor_pos()
141 draw_color(pfb, 1.0, 1.0, 1.0); in test_cursor_pos()
168 static void test_cursor_spots(data_t *data, igt_fb_t *pfb, igt_fb_t *ofb, in test_cursor_spots() argument
196 test_cursor_pos(data, pfb, ofb, cfb, or, pos[i].x, pos[i].y); in test_cursor_spots()
206 igt_fb_t pfb, ofb, cfb; in test_cursor_overlay() local
216 1.0, 1.0, 1.0, &pfb); in test_cursor_overlay()
224 igt_plane_set_fb(data->primary, &pfb); in test_cursor_overlay()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c360 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd3_emit_tile_gmem2mem() local
399 OUT_RING(ring, A3XX_GRAS_CL_VPORT_XOFFSET((float)pfb->width/2.0 - 0.5)); in fd3_emit_tile_gmem2mem()
400 OUT_RING(ring, A3XX_GRAS_CL_VPORT_XSCALE((float)pfb->width/2.0)); in fd3_emit_tile_gmem2mem()
401 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YOFFSET((float)pfb->height/2.0 - 0.5)); in fd3_emit_tile_gmem2mem()
402 OUT_RING(ring, A3XX_GRAS_CL_VPORT_YSCALE(-(float)pfb->height/2.0)); in fd3_emit_tile_gmem2mem()
431 OUT_RING(ring, A3XX_GRAS_SC_WINDOW_SCISSOR_BR_X(pfb->width - 1) | in fd3_emit_tile_gmem2mem()
432 A3XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(pfb->height - 1)); in fd3_emit_tile_gmem2mem()
444 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_gmem2mem()
447 gmem->zsbuf_base[0], pfb->zsbuf); in fd3_emit_tile_gmem2mem()
450 gmem->zsbuf_base[1], pfb->zsbuf); in fd3_emit_tile_gmem2mem()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_draw.c65 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in batch_draw_tracking() local
81 if (fd_resource(pfb->zsbuf->texture)->valid) { in batch_draw_tracking()
89 resource_written(batch, pfb->zsbuf->texture); in batch_draw_tracking()
91 resource_read(batch, pfb->zsbuf->texture); in batch_draw_tracking()
96 if (fd_resource(pfb->zsbuf->texture)->valid) { in batch_draw_tracking()
103 resource_written(batch, pfb->zsbuf->texture); in batch_draw_tracking()
110 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in batch_draw_tracking()
113 if (!pfb->cbufs[i]) in batch_draw_tracking()
116 surf = pfb->cbufs[i]->texture; in batch_draw_tracking()
130 resource_written(batch, pfb->cbufs[i]->texture); in batch_draw_tracking()
[all …]
Dfreedreno_gmem.c458 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in gmem_key_init() local
459 bool has_zs = pfb->zsbuf && !!(batch->gmem_reason & (FD_GMEM_DEPTH_ENABLED | in gmem_key_init()
464 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in gmem_key_init()
474 key->nr_cbufs = pfb->nr_cbufs; in gmem_key_init()
475 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in gmem_key_init()
476 if (pfb->cbufs[i]) in gmem_key_init()
477 key->cbuf_cpp[i] = util_format_get_blocksize(pfb->cbufs[i]->format); in gmem_key_init()
481 key->cbuf_cpp[i] *= pfb->samples; in gmem_key_init()
490 key->width = pfb->width; in gmem_key_init()
491 key->height = pfb->height; in gmem_key_init()
[all …]
Dfreedreno_batch_cache.c467 const struct pipe_framebuffer_state *pfb) in fd_batch_from_fb() argument
469 unsigned idx = 0, n = pfb->nr_cbufs + (pfb->zsbuf ? 1 : 0); in fd_batch_from_fb()
472 key->width = pfb->width; in fd_batch_from_fb()
473 key->height = pfb->height; in fd_batch_from_fb()
474 key->layers = pfb->layers; in fd_batch_from_fb()
475 key->samples = util_framebuffer_get_num_samples(pfb); in fd_batch_from_fb()
478 if (pfb->zsbuf) in fd_batch_from_fb()
479 key_surf(key, idx++, 0, pfb->zsbuf); in fd_batch_from_fb()
481 for (unsigned i = 0; i < pfb->nr_cbufs; i++) in fd_batch_from_fb()
482 if (pfb->cbufs[i]) in fd_batch_from_fb()
[all …]
Dfreedreno_blitter.c178 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd_blitter_clear() local
186 util_blitter_common_clear_setup(blitter, pfb->width, pfb->height, in fd_blitter_clear()
200 unsigned rs_idx = pfb->samples > 1 ? 1 : 0; in fd_blitter_clear()
209 .multisample = pfb->samples > 1, in fd_blitter_clear()
216 .scale = { 0.5f * pfb->width, -0.5f * pfb->height, depth }, in fd_blitter_clear()
217 .translate = { 0.5f * pfb->width, 0.5f * pfb->height, 0.0f }, in fd_blitter_clear()
244 assert(util_framebuffer_state_equal(pfb, &ctx->framebuffer)); in fd_blitter_clear()
Dfreedreno_util.h195 fd_half_precision(struct pipe_framebuffer_state *pfb) in fd_half_precision() argument
199 for (i = 0; i < pfb->nr_cbufs; i++) in fd_half_precision()
200 if (!fd_surface_half_precision(pfb->cbufs[i])) in fd_half_precision()
Dfreedreno_batch_cache.h76 struct fd_context *ctx, const struct pipe_framebuffer_state *pfb);
Dfreedreno_resource.c1191 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd_invalidate_resource() local
1193 if (pfb->zsbuf && pfb->zsbuf->texture == prsc) { in fd_invalidate_resource()
1198 for (unsigned i = 0; i < pfb->nr_cbufs; i++) { in fd_invalidate_resource()
1199 if (pfb->cbufs[i] && pfb->cbufs[i]->texture == prsc) { in fd_invalidate_resource()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_gmem.c73 emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb, in emit_mrt() argument
82 for (i = 0; i < pfb->nr_cbufs; i++) { in emit_mrt()
92 if (!pfb->cbufs[i]) in emit_mrt()
97 struct pipe_surface *psurf = pfb->cbufs[i]; in emit_mrt()
277 update_render_cntl(struct fd_batch *batch, struct pipe_framebuffer_state *pfb, bool binning) in update_render_cntl() argument
285 if (pfb->zsbuf) { in update_render_cntl()
286 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in update_render_cntl()
287 depth_ubwc_enable = fd_resource_ubwc_enabled(rsc, pfb->zsbuf->u.tex.level); in update_render_cntl()
290 for (i = 0; i < pfb->nr_cbufs; i++) { in update_render_cntl()
291 if (!pfb->cbufs[i]) in update_render_cntl()
[all …]
Dfd6_emit.c248 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd6_emit_fb_tex() local
249 struct pipe_surface *psurf = pfb->cbufs[0]; in fd6_emit_fb_tex()
261 OUT_RING(state, A6XX_TEX_CONST_1_WIDTH(pfb->width) | in fd6_emit_fb_tex()
262 A6XX_TEX_CONST_1_HEIGHT(pfb->height)); in fd6_emit_fb_tex()
583 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in compute_ztest_mode() local
593 (zsa->base.depth.writemask || !pfb->zsbuf)) { in compute_ztest_mode()
615 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in compute_lrz_state() local
619 if (!pfb->zsbuf) { in compute_lrz_state()
629 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in compute_lrz_state()
789 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd6_emit_state() local
[all …]
Dfd6_draw.c478 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd6_clear() local
479 const bool has_depth = pfb->zsbuf; in fd6_clear()
483 if (pfb->samples > 1) in fd6_clear()
503 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd6_clear()
504 if (zsbuf->lrz && !is_z32(pfb->zsbuf->format)) { in fd6_clear()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_gmem.c368 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd5_emit_tile_init() local
394 emit_zs(ring, pfb->zsbuf, batch->gmem_state); in fd5_emit_tile_init()
395 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, batch->gmem_state); in fd5_emit_tile_init()
526 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd5_emit_tile_mem2gmem() local
532 emit_mrt(ring, pfb->nr_cbufs, pfb->cbufs, NULL); in fd5_emit_tile_mem2gmem()
542 for (i = 0; i < pfb->nr_cbufs; i++) { in fd5_emit_tile_mem2gmem()
543 if (!pfb->cbufs[i]) in fd5_emit_tile_mem2gmem()
548 pfb->cbufs[i], BLIT_MRT0 + i); in fd5_emit_tile_mem2gmem()
553 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_mem2gmem()
556 emit_mem2gmem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf, BLIT_ZS); in fd5_emit_tile_mem2gmem()
[all …]
Dfd5_draw.c262 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd5_clear() local
265 is_z32(pfb->zsbuf->format)) in fd5_clear()
271 for (int i = 0; i < pfb->nr_cbufs; i++) { in fd5_clear()
274 if (!pfb->cbufs[i]) in fd5_clear()
280 enum pipe_format pfmt = pfb->cbufs[i]->format; in fd5_clear()
330 if (pfb->zsbuf && (buffers & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) { in fd5_clear()
332 util_pack_z_stencil(pfb->zsbuf->format, depth, stencil); in fd5_clear()
353 if (pfb->zsbuf && (buffers & PIPE_CLEAR_DEPTH)) { in fd5_clear()
354 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd5_clear()
Dfd5_emit.c524 struct pipe_framebuffer_state *pfb = &ctx->batch->framebuffer; in fd5_emit_state() local
536 mrt_comp[i] = ((i < pfb->nr_cbufs) && pfb->cbufs[i]) ? 0xf : 0; in fd5_emit_state()
554 if (util_format_is_pure_integer(pipe_surface_format(pfb->cbufs[0]))) in fd5_emit_state()
568 if (pfb->zsbuf) { in fd5_emit_state()
569 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_state()
653 COND(pfb->samples > 1, A5XX_GRAS_SU_CNTL_MSAA_ENABLE)); in fd5_emit_state()
693 unsigned nr = pfb->nr_cbufs; in fd5_emit_state()
749 enum pipe_format format = pipe_surface_format(pfb->cbufs[i]); in fd5_emit_state()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_blend.c125 struct pipe_framebuffer_state *pfb = &ctx->framebuffer_s; in etna_update_blend() local
132 if (pfb->cbufs[0] && in etna_update_blend()
133 translate_pe_format_rb_swap(pfb->cbufs[0]->format)) { in etna_update_blend()
147 if (pfb->cbufs[0]) in etna_update_blend()
148 desc = util_format_description(pfb->cbufs[0]->format); in etna_update_blend()
149 bool full_overwrite = !pfb->cbufs[0] || ((blend->fo_allowed && in etna_update_blend()
172 struct pipe_framebuffer_state *pfb = &ctx->framebuffer_s; in etna_update_blend_color() local
174 bool rb_swap = (pfb->cbufs[0] && translate_pe_format_rb_swap(pfb->cbufs[0]->format)); in etna_update_blend_color()
Detnaviv_context.c230 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()
314 resource_written(ctx, pfb->zsbuf->texture); in etna_draw_vbo()
317 resource_written(ctx, pfb->zsbuf->texture); in etna_draw_vbo()
319 for (i = 0; i < pfb->nr_cbufs; i++) { in etna_draw_vbo()
322 if (!pfb->cbufs[i]) in etna_draw_vbo()
325 surf = pfb->cbufs[i]->texture; in etna_draw_vbo()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_gmem.c140 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in prepare_tile_fini_ib() local
184 OUT_RING(ring, xy2d(pfb->width, pfb->height)); /* PA_SC_WINDOW_SCISSOR_BR */ in prepare_tile_fini_ib()
202 emit_gmem2mem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf); in prepare_tile_fini_ib()
205 emit_gmem2mem_surf(batch, gmem->cbuf_base[0], pfb->cbufs[0]); in prepare_tile_fini_ib()
282 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd2_emit_tile_mem2gmem() local
293 x0 = ((float)tile->xoff) / ((float)pfb->width); in fd2_emit_tile_mem2gmem()
294 x1 = ((float)tile->xoff + bin_w) / ((float)pfb->width); in fd2_emit_tile_mem2gmem()
295 y0 = ((float)tile->yoff) / ((float)pfb->height); in fd2_emit_tile_mem2gmem()
296 y1 = ((float)tile->yoff + bin_h) / ((float)pfb->height); in fd2_emit_tile_mem2gmem()
373 emit_mem2gmem_surf(batch, gmem->zsbuf_base[0], pfb->zsbuf); in fd2_emit_tile_mem2gmem()
[all …]
Dfd2_draw.c418 struct pipe_framebuffer_state *pfb = &batch->framebuffer; in fd2_clear_fast() local
420 enum pipe_format format = pipe_surface_format(pfb->cbufs[0]); in fd2_clear_fast()
436 if ((pfb->zsbuf->format == PIPE_FORMAT_Z24_UNORM_S8_UINT || in fd2_clear_fast()
437 pfb->zsbuf->format == PIPE_FORMAT_S8_UINT_Z24_UNORM) && in fd2_clear_fast()
441 depth_size = fd_pipe2depth(pfb->zsbuf->format) == DEPTHX_24_8; in fd2_clear_fast()
/external/freetype/src/type1/
Dmodule.mk20 $(ECHO_DRIVER)type1 $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECH…
/external/fonttools/
D.gitattributes11 *.pfb binary
DMANIFEST.in39 recursive-include Tests *.lwfn *.pfa *.pfb
/external/llvm-project/clang/test/Analysis/
Dpointer-to-member.cpp161 int B::* pfb = &B::f; in foo() local
162 int D::* pfd = pfb; in foo()

12