/external/libdrm/radeon/ |
D | radeon_surface.c | 96 struct radeon_surface *surf); 98 struct radeon_surface *surf); 167 static void surf_minify(struct radeon_surface *surf, in surf_minify() argument 173 surflevel->npix_x = mip_minify(surf->npix_x, level); in surf_minify() 174 surflevel->npix_y = mip_minify(surf->npix_y, level); in surf_minify() 175 surflevel->npix_z = mip_minify(surf->npix_z, level); in surf_minify() 176 surflevel->nblk_x = (surflevel->npix_x + surf->blk_w - 1) / surf->blk_w; in surf_minify() 177 surflevel->nblk_y = (surflevel->npix_y + surf->blk_h - 1) / surf->blk_h; in surf_minify() 178 surflevel->nblk_z = (surflevel->npix_z + surf->blk_d - 1) / surf->blk_d; in surf_minify() 179 if (surf->nsamples == 1 && surflevel->mode == RADEON_SURF_MODE_2D && in surf_minify() [all …]
|
/external/mesa3d/src/amd/common/ |
D | ac_surface.c | 477 struct radeon_surf *surf, bool is_stencil, unsigned level, in gfx6_compute_level() argument 524 AddrSurfInfoIn->basePitch = surf->u.legacy.stencil_level[0].nblk_x; in gfx6_compute_level() 526 AddrSurfInfoIn->basePitch = surf->u.legacy.level[0].nblk_x; in gfx6_compute_level() 530 AddrSurfInfoIn->basePitch *= surf->blk_w; in gfx6_compute_level() 538 surf_level = is_stencil ? &surf->u.legacy.stencil_level[level] : &surf->u.legacy.level[level]; in gfx6_compute_level() 539 surf_level->offset = align64(surf->surf_size, AddrSurfInfoOut->baseAlign); in gfx6_compute_level() 559 surf->u.legacy.stencil_tiling_index[level] = AddrSurfInfoOut->tileIndex; in gfx6_compute_level() 561 surf->u.legacy.tiling_index[level] = AddrSurfInfoOut->tileIndex; in gfx6_compute_level() 563 surf->surf_size = surf_level->offset + AddrSurfInfoOut->surfSize; in gfx6_compute_level() 581 surf_level->dcc_offset = surf->dcc_size; in gfx6_compute_level() [all …]
|
/external/mesa3d/src/intel/isl/tests/ |
D | isl_surf_get_image_offset_test.c | 55 t_assert_image_alignment_el(const struct isl_surf *surf, in t_assert_image_alignment_el() argument 60 align_el = isl_surf_get_image_alignment_el(surf); in t_assert_image_alignment_el() 68 t_assert_image_alignment_sa(const struct isl_surf *surf, in t_assert_image_alignment_sa() argument 73 align_sa = isl_surf_get_image_alignment_sa(surf); in t_assert_image_alignment_sa() 81 t_assert_offset_el(const struct isl_surf *surf, in t_assert_offset_el() argument 89 isl_surf_get_image_offset_el(surf, level, logical_array_layer, in t_assert_offset_el() 97 t_assert_phys_level0_sa(const struct isl_surf *surf, uint32_t width, in t_assert_phys_level0_sa() argument 100 t_assert_extent4d(&surf->phys_level0_sa, width, height, depth, array_len); in t_assert_phys_level0_sa() 104 t_assert_gen4_3d_layer(const struct isl_surf *surf, in t_assert_gen4_3d_layer() argument 114 t_assert_offset_el(surf, level, 0, z, in t_assert_gen4_3d_layer() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_surface.c | 83 struct etna_surface *surf = CALLOC_STRUCT(etna_surface); in etna_create_surface() local 85 if (!surf) in etna_create_surface() 93 surf->base.context = pctx; in etna_create_surface() 95 pipe_reference_init(&surf->base.reference, 1); in etna_create_surface() 96 pipe_resource_reference(&surf->base.texture, &rsc->base); in etna_create_surface() 97 pipe_resource_reference(&surf->prsc, prsc); in etna_create_surface() 115 surf->base.texture = &rsc->base; in etna_create_surface() 116 surf->base.format = templat->format; in etna_create_surface() 117 surf->base.width = rsc->levels[level].width; in etna_create_surface() 118 surf->base.height = rsc->levels[level].height; in etna_create_surface() [all …]
|
D | etnaviv_blt.c | 217 struct etna_surface *surf = etna_surface(dst); in etna_blit_clear_color_blt() local 218 uint64_t new_clear_value = etna_clear_blit_pack_rgba(surf->base.format, color); in etna_blit_clear_color_blt() 220 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_color_blt() 223 clr.dest.addr.offset = surf->surf.offset; in etna_blit_clear_color_blt() 225 clr.dest.bpp = util_format_get_blocksize(surf->base.format); in etna_blit_clear_color_blt() 226 clr.dest.stride = surf->surf.stride; in etna_blit_clear_color_blt() 229 if (surf->surf.ts_size) { in etna_blit_clear_color_blt() 232 clr.dest.ts_addr.offset = surf->level->ts_offset; in etna_blit_clear_color_blt() 236 clr.dest.ts_mode = surf->level->ts_mode; in etna_blit_clear_color_blt() 237 clr.dest.ts_compress_fmt = surf->level->ts_compress_fmt; in etna_blit_clear_color_blt() [all …]
|
D | etnaviv_rs.c | 269 etna_rs_gen_clear_surface(struct etna_context *ctx, struct etna_surface *surf, in etna_rs_gen_clear_surface() argument 273 struct etna_resource *dst = etna_resource(surf->base.texture); in etna_rs_gen_clear_surface() 276 switch (util_format_get_blocksizebits(surf->base.format)) { in etna_rs_gen_clear_surface() 293 bool tiled_clear = (surf->surf.padded_width & ETNA_RS_WIDTH_MASK) == 0 && in etna_rs_gen_clear_surface() 294 (surf->surf.padded_height & ETNA_RS_HEIGHT_MASK) == 0; in etna_rs_gen_clear_surface() 296 etna_compile_rs_state( ctx, &surf->clear_command, &(struct rs_state) { in etna_rs_gen_clear_surface() 300 .dest_offset = surf->surf.offset, in etna_rs_gen_clear_surface() 301 .dest_stride = surf->surf.stride, in etna_rs_gen_clear_surface() 302 .dest_padded_height = surf->surf.padded_height, in etna_rs_gen_clear_surface() 305 ….width = surf->surf.padded_width, /* These must be padded to 16x4 if !LINEAR, otherwise RS will ha… in etna_rs_gen_clear_surface() [all …]
|
/external/mesa3d/src/egl/main/ |
D | eglsurface.c | 54 _eglParseSurfaceAttribList(_EGLSurface *surf, const EGLint *attrib_list) in _eglParseSurfaceAttribList() argument 56 _EGLDisplay *disp = surf->Resource.Display; in _eglParseSurfaceAttribList() 57 EGLint type = surf->Type; in _eglParseSurfaceAttribList() 89 surf->GLColorspace = val; in _eglParseSurfaceAttribList() 96 surf->HdrMetadata.display_primary_r.x = val; in _eglParseSurfaceAttribList() 103 surf->HdrMetadata.display_primary_r.y = val; in _eglParseSurfaceAttribList() 110 surf->HdrMetadata.display_primary_g.x = val; in _eglParseSurfaceAttribList() 117 surf->HdrMetadata.display_primary_g.y = val; in _eglParseSurfaceAttribList() 124 surf->HdrMetadata.display_primary_b.x = val; in _eglParseSurfaceAttribList() 131 surf->HdrMetadata.display_primary_b.y = val; in _eglParseSurfaceAttribList() [all …]
|
D | eglsurface.h | 181 _eglInitSurface(_EGLSurface *surf, _EGLDisplay *disp, EGLint type, 187 _eglQuerySurface(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, EGLint *value); 191 _eglSurfaceAttrib(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, EGLint value); 195 _eglBindTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); 198 _eglReleaseTexImage(_EGLDisplay *disp, _EGLSurface *surf, EGLint buffer); 202 _eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf); 205 _eglSurfaceInSharedBufferMode(_EGLSurface *surf); 211 _eglGetSurface(_EGLSurface *surf) in _eglGetSurface() argument 213 if (surf) in _eglGetSurface() 214 _eglGetResource(&surf->Resource); in _eglGetSurface() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | vdpau.c | 84 struct vdp_surface *surf = (struct vdp_surface *)entry->key; in unregister_surface() local 87 if (surf->state == GL_SURFACE_MAPPED_NV) { in unregister_surface() 88 GLintptr surfaces[] = { (GLintptr)surf }; in unregister_surface() 93 free(surf); in unregister_surface() 118 struct vdp_surface *surf; in register_surface() local 136 surf = CALLOC_STRUCT( vdp_surface ); in register_surface() 137 if (surf == NULL) { in register_surface() 142 surf->vdpSurface = vdpSurface; in register_surface() 143 surf->target = target; in register_surface() 144 surf->access = GL_READ_WRITE; in register_surface() [all …]
|
/external/mesa3d/src/intel/blorp/ |
D | blorp.c | 81 const struct blorp_surf *surf, in brw_blorp_surface_info_init() argument 86 assert(level < surf->surf->levels); in brw_blorp_surface_info_init() 87 assert(layer < MAX2(surf->surf->logical_level0_px.depth >> level, in brw_blorp_surface_info_init() 88 surf->surf->logical_level0_px.array_len)); in brw_blorp_surface_info_init() 93 format = surf->surf->format; in brw_blorp_surface_info_init() 95 info->surf = *surf->surf; in brw_blorp_surface_info_init() 96 info->addr = surf->addr; in brw_blorp_surface_info_init() 98 info->aux_usage = surf->aux_usage; in brw_blorp_surface_info_init() 100 info->aux_surf = *surf->aux_surf; in brw_blorp_surface_info_init() 101 info->aux_addr = surf->aux_addr; in brw_blorp_surface_info_init() [all …]
|
D | blorp_clear.c | 339 const struct blorp_surf *surf, in blorp_fast_clear() argument 356 get_fast_clear_rect(batch->blorp->isl_dev, surf->aux_surf, in blorp_fast_clear() 362 brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, surf, level, in blorp_fast_clear() 364 params.num_samples = params.dst.surf.samples; in blorp_fast_clear() 377 const struct blorp_surf *surf, in blorp_clear() argument 428 if (surf->surf->tiling == ISL_TILING_LINEAR) in blorp_clear() 455 brw_blorp_surface_info_init(batch->blorp, ¶ms.dst, surf, level, in blorp_clear() 465 assert(params.dst.surf.samples == 1); in blorp_clear() 477 (params.dst.surf.usage & ISL_SURF_USAGE_CUBE_BIT)) { in blorp_clear() 487 if (isl_format_is_compressed(params.dst.surf.format)) { in blorp_clear() [all …]
|
/external/skia/gm/ |
D | surface.cpp | 150 auto surf(ToolUtils::makeSurface(canvas, info, nullptr)); in onDraw() local 151 drawInto(surf->getCanvas()); in onDraw() 153 sk_sp<SkImage> image(surf->makeImageSnapshot()); in onDraw() 156 auto surf2(surf->makeSurface(info)); in onDraw() 160 SkASSERT(equal(surf->props(), surf2->props())); in onDraw() 243 sk_sp<SkSurface> surf = make(info); variable 245 surf->getCanvas()->clear(SK_ColorRED); 248 sk_sp<SkImage> image = surf->makeImageSnapshot(); 252 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 253 surf->getCanvas()->clear(SK_ColorBLUE); [all …]
|
/external/skqp/gm/ |
D | surface.cpp | 127 auto surf(sk_tool_utils::makeSurface(canvas, info, nullptr)); in onDraw() local 128 drawInto(surf->getCanvas()); in onDraw() 130 sk_sp<SkImage> image(surf->makeImageSnapshot()); in onDraw() 133 auto surf2(surf->makeSurface(info)); in onDraw() 137 SkASSERT(equal(surf->props(), surf2->props())); in onDraw() 152 sk_sp<SkSurface> surf = sk_tool_utils::makeSurface(canvas, info); variable 154 surf->getCanvas()->clear(SK_ColorRED); 157 sk_sp<SkImage> image = surf->makeImageSnapshot(); 161 surf->getCanvas()->clipRect(SkRect::MakeWH(128, 256)); 162 surf->getCanvas()->clear(SK_ColorBLUE); [all …]
|
/external/mesa3d/src/intel/isl/ |
D | isl.c | 1610 struct isl_surf *surf, in isl_surf_init_s() argument 1754 *surf = (struct isl_surf) { in isl_surf_init_s() 1781 isl_surf_get_tile_info(const struct isl_surf *surf, in isl_surf_get_tile_info() argument 1784 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format); in isl_surf_get_tile_info() 1785 isl_tiling_get_info(surf->tiling, fmtl->bpb, tile_info); in isl_surf_get_tile_info() 1790 const struct isl_surf *surf, in isl_surf_get_hiz_surf() argument 1795 if (!isl_surf_usage_is_depth(surf->usage)) in isl_surf_get_hiz_surf() 1799 if (!isl_tiling_is_any_y(surf->tiling)) in isl_surf_get_hiz_surf() 1803 switch (surf->format) { in isl_surf_get_hiz_surf() 1805 if (isl_surf_usage_is_depth_and_stencil(surf->usage)) { in isl_surf_get_hiz_surf() [all …]
|
D | isl_surface_state.c | 149 get_image_alignment(const struct isl_surf *surf) in get_image_alignment() argument 152 if (isl_tiling_is_std_y(surf->tiling) || in get_image_alignment() 153 surf->dim_layout == ISL_DIM_LAYOUT_GEN9_1D) { in get_image_alignment() 167 return isl_surf_get_image_alignment_el(surf); in get_image_alignment() 176 return isl_surf_get_image_alignment_sa(surf); in get_image_alignment() 182 get_qpitch(const struct isl_surf *surf) in get_qpitch() argument 184 switch (surf->dim_layout) { in get_qpitch() 189 if (surf->dim == ISL_SURF_DIM_3D && surf->tiling == ISL_TILING_W) { in get_qpitch() 199 return isl_surf_get_array_pitch_el_rows(surf) / 2; in get_qpitch() 201 return isl_surf_get_array_pitch_el_rows(surf); in get_qpitch() [all …]
|
D | isl_storage_image.c | 226 const struct isl_surf *surf, in isl_surf_fill_image_param() argument 231 if (surf->dim != ISL_SURF_DIM_3D) { in isl_surf_fill_image_param() 233 surf->logical_level0_px.array_len); in isl_surf_fill_image_param() 235 param->size[0] = isl_minify(surf->logical_level0_px.w, view->base_level); in isl_surf_fill_image_param() 236 param->size[1] = surf->dim == ISL_SURF_DIM_1D ? in isl_surf_fill_image_param() 238 isl_minify(surf->logical_level0_px.h, view->base_level); in isl_surf_fill_image_param() 239 param->size[2] = surf->dim == ISL_SURF_DIM_2D ? in isl_surf_fill_image_param() 241 isl_minify(surf->logical_level0_px.d, view->base_level); in isl_surf_fill_image_param() 243 isl_surf_get_image_offset_el(surf, view->base_level, in isl_surf_fill_image_param() 244 surf->dim == ISL_SURF_DIM_3D ? in isl_surf_fill_image_param() [all …]
|
/external/mesa3d/src/gallium/frontends/va/ |
D | image.c | 200 vlVaSurface *surf; in vlVaDeriveImage() local 236 surf = handle_table_get(drv->htab, surface); in vlVaDeriveImage() 238 if (!surf || !surf->buffer) in vlVaDeriveImage() 241 if (surf->buffer->interlaced) { in vlVaDeriveImage() 254 surfaces = surf->buffer->get_surfaces(surf->buffer); in vlVaDeriveImage() 262 img->format.fourcc = PipeFormatToVaFourcc(surf->buffer->buffer_format); in vlVaDeriveImage() 265 img->width = surf->templat.width; in vlVaDeriveImage() 266 img->height = surf->templat.height; in vlVaDeriveImage() 270 w = align(surf->buffer->width, 2); in vlVaDeriveImage() 271 h = align(surf->buffer->height, 2); in vlVaDeriveImage() [all …]
|
D | surface.c | 75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces() local 76 if (!surf) { in vlVaDestroySurfaces() 80 if (surf->buffer) in vlVaDestroySurfaces() 81 surf->buffer->destroy(surf->buffer); in vlVaDestroySurfaces() 82 util_dynarray_fini(&surf->subpics); in vlVaDestroySurfaces() 83 FREE(surf); in vlVaDestroySurfaces() 96 vlVaSurface *surf; in vlVaSyncSurface() local 106 surf = handle_table_get(drv->htab, render_target); in vlVaSyncSurface() 108 if (!surf || !surf->buffer) { in vlVaSyncSurface() 113 if (!surf->feedback) { in vlVaSyncSurface() [all …]
|
/external/skia/tests/ |
D | WrappedSurfaceCopyOnWriteTest.cpp | 38 auto surfaceProxyID = [&](const sk_sp<SkSurface>& surf) { in DEF_GPUTEST_FOR_ALL_CONTEXTS() argument 39 GrSurfaceDrawContext* sdc = SkCanvasPriv::TopDeviceSurfaceDrawContext(surf->getCanvas()); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 43 sk_sp<SkSurface> surf = makeDirectBackendSurface(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 44 surf->getCanvas()->clear(SkColor4f{1, 0, 0, 1}); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 45 sk_sp<SkImage> img = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 47 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 51 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 53 surf->getCanvas()->clear({0, 0, 1, 1}); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 54 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 57 img = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() [all …]
|
D | SpecialSurfaceTest.cpp | 20 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() argument 21 return surf->subset(); in Subset() 32 static void test_surface(const sk_sp<SkSpecialSurface>& surf, in test_surface() argument 36 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf.get()); in test_surface() 42 SkCanvas* canvas = surf->getCanvas(); in test_surface() 47 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); in test_surface() 54 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface() 60 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info, SkSurfaceProps())); in DEF_TEST() local 62 test_surface(surf, reporter, 0); in DEF_TEST() 72 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm, SkSurfaceProps())); in DEF_TEST() local [all …]
|
D | GrTextureMipMapInvalidationTest.cpp | 25 auto isMipped = [reporter](SkSurface* surf) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() argument 26 sk_sp<SkImage> image = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 28 surf->recordingContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 34 auto mipsAreDirty = [](SkSurface* surf) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() argument 35 sk_sp<SkImage> image = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 37 surf->recordingContext()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 79 auto surf = SkSurface::MakeRenderTarget( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 83 if (!surf) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 86 surf->getCanvas()->drawColor(SK_ColorDKGRAY); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 87 auto img = surf->makeImageSnapshot(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/external/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_rcl.c | 58 struct v3d_surface *surf = v3d_surface(psurf); in load_general() local 59 bool separate_stencil = surf->separate_stencil && buffer == STENCIL; in load_general() 61 psurf = surf->separate_stencil; in load_general() 62 surf = v3d_surface(psurf); in load_general() 75 load.memory_format = surf->tiling; in load_general() 79 load.input_image_format = surf->format; in load_general() 80 load.r_b_swap = surf->swap_rb; in load_general() 82 if (surf->tiling == VC5_TILING_UIF_NO_XOR || in load_general() 83 surf->tiling == VC5_TILING_UIF_XOR) { in load_general() 85 surf->padded_height_of_output_image_in_uif_blocks; in load_general() [all …]
|
/external/skqp/tests/ |
D | SpecialSurfaceTest.cpp | 21 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() argument 22 return surf->subset(); in Subset() 33 static void test_surface(const sk_sp<SkSpecialSurface>& surf, in test_surface() argument 37 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf.get()); in test_surface() 43 SkCanvas* canvas = surf->getCanvas(); in test_surface() 48 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); in test_surface() 55 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface() 61 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info)); in DEF_TEST() local 63 test_surface(surf, reporter, 0); in DEF_TEST() 73 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm)); in DEF_TEST() local [all …]
|
/external/mesa3d/src/gallium/frontends/vdpau/ |
D | presentation.c | 209 vlVdpOutputSurface *surf; in vlVdpPresentationQueueDisplay() local 224 surf = vlGetDataHTAB(surface); in vlVdpPresentationQueueDisplay() 225 if (!surf) in vlVdpPresentationQueueDisplay() 234 if (vscreen->set_back_texture_from_output && surf->send_to_X) in vlVdpPresentationQueueDisplay() 235 … vscreen->set_back_texture_from_output(vscreen, surf->surface->texture, clip_width, clip_height); in vlVdpPresentationQueueDisplay() 242 if (!vscreen->set_back_texture_from_output || !surf->send_to_X) { in vlVdpPresentationQueueDisplay() 260 … vl_compositor_set_rgba_layer(cstate, compositor, 0, surf->sampler_view, &src_rect, NULL, NULL); in vlVdpPresentationQueueDisplay() 269 pipe->screen->fence_reference(pipe->screen, &surf->fence, NULL); in vlVdpPresentationQueueDisplay() 270 pipe->flush(pipe, &surf->fence, 0); in vlVdpPresentationQueueDisplay() 274 pq->last_surf = surf; in vlVdpPresentationQueueDisplay() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/kernel/ |
D | vc4_render_cl.c | 94 struct drm_vc4_submit_rcl_surface *surf, in vc4_full_res_offset() argument 97 return bo->paddr + surf->offset + VC4_TILE_BUFFER_SIZE * in vc4_full_res_offset() 379 struct drm_vc4_submit_rcl_surface *surf) in vc4_full_res_bounds_check() argument 385 if (surf->offset > obj->base.size) { in vc4_full_res_bounds_check() 387 surf->offset, obj->base.size); in vc4_full_res_bounds_check() 391 if ((obj->base.size - surf->offset) / VC4_TILE_BUFFER_SIZE < in vc4_full_res_bounds_check() 397 surf->offset); in vc4_full_res_bounds_check() 406 struct drm_vc4_submit_rcl_surface *surf) in vc4_rcl_msaa_surface_setup() argument 408 if (surf->flags != 0 || surf->bits != 0) { in vc4_rcl_msaa_surface_setup() 413 if (surf->hindex == ~0) in vc4_rcl_msaa_surface_setup() [all …]
|