Lines Matching refs:buffer

379                          struct v3dv_buffer *buffer,
419 (job, buffer, image, &framebuffer, region);
444 struct v3dv_buffer *buffer,
459 /* Generally, the bpp of the data in the buffer matches that of the
468 * a linear image from the destination buffer and we also want our blit
511 /* We want to write depth in the buffer in the first 24-bits,
531 * so adjust the buffer bpp for that. Since the hardware stores stencil
570 /* Obtain the 2D buffer region spec */
600 * buffer for the blit destination image (since compressed formats are
643 /* Create the destination blit image from the destination buffer */
669 /* Bind the buffer memory to the image */
670 VkDeviceSize buffer_offset = buffer->mem_offset + region->bufferOffset +
674 v3dv_device_memory_to_handle(buffer->mem),
732 unreachable("Unable to blit buffer to destination image");
748 V3DV_FROM_HANDLE(v3dv_buffer, buffer, info->dstBuffer);
755 if (copy_image_to_buffer_tlb(cmd_buffer, buffer, image, &info->pRegions[i]))
757 if (copy_image_to_buffer_blit(cmd_buffer, buffer, image, &info->pRegions[i]))
759 unreachable("Unsupported image to buffer copy.");
1286 * "If VK_WHOLE_SIZE is used and the remaining size of the buffer is not
1307 struct v3dv_buffer *buffer,
1316 /* We can't copy D24S8 because buffer to image copies only copy one aspect
1319 * the Vulkan spec has the buffer data specified the other way around, so it
1376 assert(buffer->mem && buffer->mem->bo);
1377 const struct v3dv_bo *src_bo = buffer->mem->bo;
1389 buffer->mem_offset + region->bufferOffset +
1421 struct v3dv_buffer *buffer,
1460 (job, image, buffer, &framebuffer, region);
1470 struct v3dv_buffer *buffer,
1473 if (copy_buffer_to_image_tfu(cmd_buffer, image, buffer, region))
1475 if (copy_buffer_to_image_tlb(cmd_buffer, image, buffer, region))
1483 /* If this is not the first pool we create for this command buffer
1618 "meta texel buffer copy vs");
1642 "meta texel buffer copy gs");
1734 "meta texel buffer copy fs");
1736 /* We only use the copy from texel buffer shader to implement
1748 /* Texel buffer input */
1757 * texel buffer.
1764 /* Load the buffer stride (this comes in texel units) */
1770 /* Load the buffer offset (this comes in texel units) */
1778 /* Load pixel data from texel buffer based on the x,y offset of the pixel
1783 * texel buffer should always be within its bounds and we we don't need
1807 nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, "texel buffer result");
1964 struct v3dv_buffer *buffer,
2002 /* The buffer needs to have VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT
2003 * so we can bind it as a texel buffer. Otherwise, the buffer view
2006 if (!(buffer->usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT)) {
2010 buffer->usage |= VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
2038 /* Get the texel buffer copy pipeline */
2048 /* Setup descriptor set for the source texel buffer. We don't have to
2049 * register the descriptor as a private command buffer object since
2066 .buffer = v3dv_buffer_to_handle(buffer),
2094 /* Push command buffer state before starting meta operation */
2227 /* Obtain the 2D buffer region spec */
2295 struct v3dv_buffer *buffer,
2303 * buffer to a tiled image that we can use as a blit source, which
2306 perf_debug("Falling back to blit path for buffer to image copy.\n");
2384 /* Obtain the 2D buffer region spec */
2433 /* Upload buffer contents for the selected layer */
2453 buffer, &buffer_image_copy);
2458 unreachable("Unable to copy buffer to image through TLB");
2462 /* Blit-copy the requested image extent from the buffer image to the
2512 unreachable("Unable to blit buffer to destination image");
2528 struct v3dv_buffer *buffer,
2539 /* Generally, the bpp of the data in the buffer matches that of the
2545 /* We are about to upload the buffer data to an image so we can then
2587 * in the buffer is stored in the 24-LSB, but V3D wants it in the
2604 * separate stencil images, we interpret the buffer data as a
2639 buffer, buf_bpp,
2645 buffer, buf_bpp,
2658 struct v3dv_buffer *buffer,
2700 job->cpu.copy_buffer_to_image.buffer = buffer;
2722 V3DV_FROM_HANDLE(v3dv_buffer, buffer, info->srcBuffer);
2736 if (copy_buffer_to_image_tfu(cmd_buffer, image, buffer, &info->pRegions[r]))
2739 if (copy_buffer_to_image_tlb(cmd_buffer, image, buffer, &info->pRegions[r]))
2766 if (copy_buffer_to_image_shader(cmd_buffer, image, buffer,
2777 if (copy_buffer_to_image_cpu(cmd_buffer, image, buffer,
2783 if (copy_buffer_to_image_shader(cmd_buffer, image, buffer,
2788 unreachable("Unsupported buffer to image copy.");
3447 * to the cmd buffer. Therefore, at the end of the meta clear,
3701 /* If this is not the first pool we create for this command buffer
4006 /* Push command buffer state before starting meta operation */
4088 * register the descriptor as a private command buffer object since
4145 * use the render pass version that won't pre-load the tile buffer