Lines Matching defs:ops

1262 /* blit ops - common interface for 2d/shader paths */
1332 coords(const struct blit_ops *ops,
1338 ops->coords(cs, (const VkOffset2D*) dst, (const VkOffset2D*) src, (const VkExtent2D*) extent);
1399 const struct blit_ops *ops = &r2d_ops;
1410 ops->setup(cmd, cs, PIPE_FORMAT_Z16_UNORM, PIPE_FORMAT_Z16_UNORM,
1413 ops->clear_value(cs, PIPE_FORMAT_Z16_UNORM, value);
1414 ops->dst_buffer(cs, PIPE_FORMAT_Z16_UNORM,
1417 ops->coords(cs, &(VkOffset2D) {}, NULL, &(VkExtent2D) {image->lrz_pitch, image->lrz_height});
1418 ops->run(cmd, cs);
1419 ops->teardown(cmd, cs);
1434 const struct blit_ops *ops = &r2d_ops;
1438 ops->setup(cmd, cs, PIPE_FORMAT_R32_UINT, PIPE_FORMAT_R32_UINT,
1441 ops->clear_value(cs, PIPE_FORMAT_R32_UINT, &clear);
1442 ops->dst_buffer(cs, PIPE_FORMAT_R32_UINT,
1445 ops->coords(cs, &(VkOffset2D) {}, NULL, &(VkExtent2D) {128, 1});
1446 ops->run(cmd, cs);
1447 ops->teardown(cmd, cs);
1512 const struct blit_ops *ops = &r2d_ops;
1562 ops = &r3d_ops;
1579 ops->setup(cmd, cs, src_format, dst_format, info->dstSubresource.aspectMask,
1583 if (ops == &r3d_ops) {
1610 ops->src(cmd, cs, &src, 0, filter, dst_format);
1620 ops->src(cmd, cs, &src, i, filter, dst_format);
1622 ops->dst(cs, &dst, i, src_format);
1623 ops->run(cmd, cs);
1626 ops->teardown(cmd, cs);
1629 ops == &r3d_ops,
1705 const struct blit_ops *ops = &r2d_ops;
1715 ops = &r3d_ops;
1727 ops->setup(cmd, cs, src_format, dst_format,
1735 ops->dst(cs, &dst, i, src_format);
1741 ops->src_buffer(cmd, cs, src_format, src_va & ~63, pitch,
1743 ops->coords(cs, &(VkOffset2D){offset.x, offset.y + y}, &(VkOffset2D){x},
1745 ops->run(cmd, cs);
1749 ops->src_buffer(cmd, cs, src_format, src_va, pitch, extent.width, extent.height, dst_format);
1750 coords(ops, cs, &offset, &(VkOffset3D){}, &extent);
1751 ops->run(cmd, cs);
1755 ops->teardown(cmd, cs);
1787 const struct blit_ops *ops = &r2d_ops;
1796 ops = &r3d_ops;
1808 ops->setup(cmd, cs, src_format, dst_format, VK_IMAGE_ASPECT_COLOR_BIT, 0, false, false,
1815 ops->src(cmd, cs, &src, i, VK_FILTER_NEAREST, dst_format);
1821 ops->dst_buffer(cs, dst_format, dst_va & ~63, 0, src_format);
1822 ops->coords(cs, &(VkOffset2D) {x}, &(VkOffset2D){offset.x, offset.y + y},
1824 ops->run(cmd, cs);
1828 ops->dst_buffer(cs, dst_format, dst_va, pitch, src_format);
1829 coords(ops, cs, &(VkOffset3D) {0, 0}, &offset, &extent);
1830 ops->run(cmd, cs);
1834 ops->teardown(cmd, cs);
1885 const struct blit_ops *ops = &r2d_ops;
1889 ops = &r3d_ops;
1922 ops = &r3d_ops;
2006 ops->setup(cmd, cs, src_format, src_format, VK_IMAGE_ASPECT_COLOR_BIT, 0, false, false,
2008 coords(ops, cs, &staging_offset, &src_offset, &extent);
2011 ops->src(cmd, cs, &src, i, VK_FILTER_NEAREST, src_format);
2012 ops->dst(cs, &staging, i, src_format);
2013 ops->run(cmd, cs);
2034 ops->setup(cmd, cs, dst_format, dst_format, info->dstSubresource.aspectMask,
2037 coords(ops, cs, &dst_offset, &staging_offset, &extent);
2040 ops->src(cmd, cs, &staging, i, VK_FILTER_NEAREST, dst_format);
2041 ops->dst(cs, &dst, i, dst_format);
2042 ops->run(cmd, cs);
2048 ops->setup(cmd, cs, format, format, info->dstSubresource.aspectMask,
2051 coords(ops, cs, &dst_offset, &src_offset, &extent);
2054 ops->src(cmd, cs, &src, i, VK_FILTER_NEAREST, format);
2055 ops->dst(cs, &dst, i, format);
2056 ops->run(cmd, cs);
2060 ops->teardown(cmd, cs);
2098 const struct blit_ops *ops = &r2d_ops;
2103 ops->setup(cmd, cs, format, format, VK_IMAGE_ASPECT_COLOR_BIT, 0, false, false,
2111 ops->src_buffer(cmd, cs, format, src_va & ~63, 0, src_x + width, 1, format);
2112 ops->dst_buffer( cs, format, dst_va & ~63, 0, format);
2113 ops->coords(cs, &(VkOffset2D) {dst_x}, &(VkOffset2D) {src_x}, &(VkExtent2D) {width, 1});
2114 ops->run(cmd, cs);
2121 ops->teardown(cmd, cs);
2171 const struct blit_ops *ops = &r2d_ops;
2180 ops->setup(cmd, cs, PIPE_FORMAT_R32_UINT, PIPE_FORMAT_R32_UINT,
2183 ops->clear_value(cs, PIPE_FORMAT_R32_UINT, &(VkClearValue){.color = {.uint32[0] = data}});
2189 ops->dst_buffer(cs, PIPE_FORMAT_R32_UINT, dst_va & ~63, 0, PIPE_FORMAT_R32_UINT);
2190 ops->coords(cs, &(VkOffset2D) {dst_x}, NULL, &(VkExtent2D) {width, 1});
2191 ops->run(cmd, cs);
2197 ops->teardown(cmd, cs);
2207 const struct blit_ops *ops = &r2d_ops;
2214 ops->setup(cmd, cs, src_format, dst_format,
2225 coords(ops, cs, &info->dstOffset, &info->srcOffset, &info->extent);
2232 ops->src(cmd, cs, &src, i, VK_FILTER_NEAREST, dst_format);
2233 ops->dst(cs, &dst, i, src_format);
2234 ops->run(cmd, cs);
2238 ops->teardown(cmd, cs);
2260 const struct blit_ops *ops = &r2d_ops;
2267 ops->setup(cmd, cs, src_format, dst_format,
2270 ops->coords(cs, &rect->offset, &rect->offset, &rect->extent);
2280 ops->src(cmd, cs, &src->view, i, VK_FILTER_NEAREST, dst_format);
2285 ops->dst_depth(cs, dst, i);
2287 ops->dst_stencil(cs, dst, i);
2290 ops->dst(cs, &dst->view, i, src_format);
2293 ops->run(cmd, cs);
2296 ops->teardown(cmd, cs);
2355 const struct blit_ops *ops = image->layout[0].nr_samples > 1 ? &r3d_ops : &r2d_ops;
2357 ops->setup(cmd, cs, format, format, aspect_mask, 0, true, image->layout[0].ubwc,
2360 ops->clear_value(cs, PIPE_FORMAT_R9G9B9E5_FLOAT, clear_value);
2362 ops->clear_value(cs, format, clear_value);
2368 ops->coords(cs, &(VkOffset2D){}, NULL, &(VkExtent2D) {
2382 ops->dst(cs, &dst, i, format);
2383 ops->run(cmd, cs);
2387 ops->teardown(cmd, cs);
2852 const struct blit_ops *ops = &r2d_ops;
2854 ops = &r3d_ops;
2858 ops->setup(cmd, cs, format, format, clear_mask, 0, true, iview->view.ubwc_enabled,
2860 ops->coords(cs, &cmd->state.render_area.offset, NULL,
2862 ops->clear_value(cs, format, value);
2867 ops->dst_depth(cs, iview, i);
2869 ops->dst_stencil(cs, iview, i);
2872 ops->dst(cs, &iview->view, i, format);
2874 ops->run(cmd, cs);
2877 ops->teardown(cmd, cs);
2880 vk_format, ops == &r3d_ops,