Lines Matching refs:surf
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 == V3D_TILING_UIF_NO_XOR || in load_general()
83 surf->tiling == V3D_TILING_UIF_XOR) { in load_general()
85 surf->padded_height_of_output_image_in_uif_blocks; in load_general()
86 } else if (surf->tiling == V3D_TILING_RASTER) { in load_general()
104 surf->padded_height_of_output_image_in_uif_blocks; in load_general()
120 struct v3d_surface *surf = v3d_surface(psurf); in store_general() local
121 bool separate_stencil = surf->separate_stencil && buffer == STENCIL; in store_general()
123 psurf = surf->separate_stencil; in store_general()
124 surf = v3d_surface(psurf); in store_general()
147 store.output_image_format = surf->format; in store_general()
149 store.r_b_swap = surf->swap_rb; in store_general()
150 store.memory_format = surf->tiling; in store_general()
152 if (surf->tiling == V3D_TILING_UIF_NO_XOR || in store_general()
153 surf->tiling == V3D_TILING_UIF_XOR) { in store_general()
155 surf->padded_height_of_output_image_in_uif_blocks; in store_general()
156 } else if (surf->tiling == V3D_TILING_RASTER) { in store_general()
191 surf->padded_height_of_output_image_in_uif_blocks; in store_general()
492 struct v3d_surface *surf = v3d_surface(job->cbufs[cbuf]); in v3d_setup_render_target() local
493 *rt_bpp = surf->internal_bpp; in v3d_setup_render_target()
498 *rt_type = surf->internal_type; in v3d_setup_render_target()
505 v3d_emit_z_stencil_config(struct v3d_job *job, struct v3d_surface *surf, in v3d_emit_z_stencil_config() argument
509 zs.address = cl_address(rsc->bo, surf->offset); in v3d_emit_z_stencil_config()
512 zs.internal_type = surf->internal_type; in v3d_emit_z_stencil_config()
513 zs.output_image_format = surf->format; in v3d_emit_z_stencil_config()
519 surf->padded_height_of_output_image_in_uif_blocks; in v3d_emit_z_stencil_config()
521 assert(surf->tiling != V3D_TILING_RASTER); in v3d_emit_z_stencil_config()
522 zs.memory_format = surf->tiling; in v3d_emit_z_stencil_config()
707 struct v3d_surface *surf = v3d_surface(job->zsbuf); in v3dX()
708 config.internal_depth_type = surf->internal_type; in v3dX()
744 struct v3d_surface *surf = v3d_surface(psurf); in v3dX() local
751 if (surf->tiling == V3D_TILING_UIF_NO_XOR || in v3dX()
752 surf->tiling == V3D_TILING_UIF_XOR) { in v3dX()
756 if (surf->padded_height_of_output_image_in_uif_blocks - in v3dX()
758 config_pad = (surf->padded_height_of_output_image_in_uif_blocks - in v3dX()
762 clear_pad = surf->padded_height_of_output_image_in_uif_blocks; in v3dX()
768 rt.address = cl_address(rsc->bo, surf->offset); in v3dX()
769 rt.internal_type = surf->internal_type; in v3dX()
770 rt.output_image_format = surf->format; in v3dX()
771 rt.memory_format = surf->tiling; in v3dX()
772 rt.internal_bpp = surf->internal_bpp; in v3dX()
788 if (surf->internal_bpp >= V3D_INTERNAL_BPP_64) { in v3dX()
801 if (surf->internal_bpp >= V3D_INTERNAL_BPP_128 || clear_pad) { in v3dX()
836 struct v3d_surface *surf = v3d_surface(psurf); in v3dX() local
839 v3d_emit_z_stencil_config(job, surf, rsc, false); in v3dX()
845 if (surf->separate_stencil) { in v3dX()
847 v3d_surface(surf->separate_stencil), in v3dX()