Lines Matching refs:surf

101 				    struct drm_vc4_submit_rcl_surface *surf,  in vc4_full_res_offset()  argument
104 return bo->paddr + surf->offset + VC4_TILE_BUFFER_SIZE * in vc4_full_res_offset()
385 struct drm_vc4_submit_rcl_surface *surf) in vc4_full_res_bounds_check() argument
390 if (surf->offset > obj->base.size) { in vc4_full_res_bounds_check()
392 surf->offset, obj->base.size); in vc4_full_res_bounds_check()
396 if ((obj->base.size - surf->offset) / VC4_TILE_BUFFER_SIZE < in vc4_full_res_bounds_check()
402 surf->offset); in vc4_full_res_bounds_check()
411 struct drm_vc4_submit_rcl_surface *surf) in vc4_rcl_msaa_surface_setup() argument
413 if (surf->flags != 0 || surf->bits != 0) { in vc4_rcl_msaa_surface_setup()
418 if (surf->hindex == ~0) in vc4_rcl_msaa_surface_setup()
421 *obj = vc4_use_bo(exec, surf->hindex); in vc4_rcl_msaa_surface_setup()
427 if (surf->offset & 0xf) { in vc4_rcl_msaa_surface_setup()
432 return vc4_full_res_bounds_check(exec, *obj, surf); in vc4_rcl_msaa_surface_setup()
437 struct drm_vc4_submit_rcl_surface *surf, in vc4_rcl_surface_setup() argument
440 uint8_t tiling = VC4_GET_FIELD(surf->bits, in vc4_rcl_surface_setup()
442 uint8_t buffer = VC4_GET_FIELD(surf->bits, in vc4_rcl_surface_setup()
444 uint8_t format = VC4_GET_FIELD(surf->bits, in vc4_rcl_surface_setup()
449 if (surf->flags & ~VC4_SUBMIT_RCL_SURFACE_READ_IS_FULL_RES) { in vc4_rcl_surface_setup()
454 if (surf->hindex == ~0) in vc4_rcl_surface_setup()
457 *obj = vc4_use_bo(exec, surf->hindex); in vc4_rcl_surface_setup()
464 if (surf->flags & VC4_SUBMIT_RCL_SURFACE_READ_IS_FULL_RES) { in vc4_rcl_surface_setup()
465 if (surf == &exec->args->zs_write) { in vc4_rcl_surface_setup()
470 if (surf->bits != 0) { in vc4_rcl_surface_setup()
476 ret = vc4_full_res_bounds_check(exec, *obj, surf); in vc4_rcl_surface_setup()
483 if (surf->bits & ~(VC4_LOADSTORE_TILE_BUFFER_TILING_MASK | in vc4_rcl_surface_setup()
487 surf->bits); in vc4_rcl_surface_setup()
520 if (surf->offset & 0xf) { in vc4_rcl_surface_setup()
525 if (!vc4_check_tex_size(exec, *obj, surf->offset, tiling, in vc4_rcl_surface_setup()
537 struct drm_vc4_submit_rcl_surface *surf) in vc4_rcl_render_config_surface_setup() argument
539 uint8_t tiling = VC4_GET_FIELD(surf->bits, in vc4_rcl_render_config_surface_setup()
541 uint8_t format = VC4_GET_FIELD(surf->bits, in vc4_rcl_render_config_surface_setup()
545 if (surf->flags != 0) { in vc4_rcl_render_config_surface_setup()
550 if (surf->bits & ~(VC4_RENDER_CONFIG_MEMORY_FORMAT_MASK | in vc4_rcl_render_config_surface_setup()
555 surf->bits); in vc4_rcl_render_config_surface_setup()
559 if (surf->hindex == ~0) in vc4_rcl_render_config_surface_setup()
562 *obj = vc4_use_bo(exec, surf->hindex); in vc4_rcl_render_config_surface_setup()
586 if (!vc4_check_tex_size(exec, *obj, surf->offset, tiling, in vc4_rcl_render_config_surface_setup()