summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta_blit2d.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-03-14 08:15:16 -0700
committerNanley Chery <[email protected]>2016-03-16 10:57:14 -0700
commit5647de8ba56d8b4f2247eecc2cfcb3ec596dafe1 (patch)
treeaf36e027cd8d3a49aec3f8875500c39f4471aa6f /src/intel/vulkan/anv_meta_blit2d.c
parent92fb65f1176334159c9b2327bbb693332b0b6bb6 (diff)
anv/blit2d: Only use one extent in meta_emit_blit2d
Since scaling isn't involved, we don't need multiple extents. Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_meta_blit2d.c')
-rw-r--r--src/intel/vulkan/anv_meta_blit2d.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c
index 4fab5d1b3dd..cb7e64b01df 100644
--- a/src/intel/vulkan/anv_meta_blit2d.c
+++ b/src/intel/vulkan/anv_meta_blit2d.c
@@ -58,10 +58,9 @@ static void
meta_emit_blit2d(struct anv_cmd_buffer *cmd_buffer,
struct anv_image_view *src_iview,
VkOffset3D src_offset,
- VkExtent3D src_extent,
struct anv_image_view *dest_iview,
VkOffset3D dest_offset,
- VkExtent3D dest_extent)
+ VkExtent3D extent)
{
struct anv_device *device = cmd_buffer->device;
@@ -79,12 +78,12 @@ meta_emit_blit2d(struct anv_cmd_buffer *cmd_buffer,
vb_data[0] = (struct blit_vb_data) {
.pos = {
- dest_offset.x + dest_extent.width,
- dest_offset.y + dest_extent.height,
+ dest_offset.x + extent.width,
+ dest_offset.y + extent.height,
},
.tex_coord = {
- src_offset.x + src_extent.width,
- src_offset.y + src_extent.height,
+ src_offset.x + extent.width,
+ src_offset.y + extent.height,
src_offset.z,
},
};
@@ -92,11 +91,11 @@ meta_emit_blit2d(struct anv_cmd_buffer *cmd_buffer,
vb_data[1] = (struct blit_vb_data) {
.pos = {
dest_offset.x,
- dest_offset.y + dest_extent.height,
+ dest_offset.y + extent.height,
},
.tex_coord = {
src_offset.x,
- src_offset.y + src_extent.height,
+ src_offset.y + extent.height,
src_offset.z,
},
};
@@ -197,7 +196,7 @@ meta_emit_blit2d(struct anv_cmd_buffer *cmd_buffer,
.framebuffer = fb,
.renderArea = {
.offset = { dest_offset.x, dest_offset.y },
- .extent = { dest_extent.width, dest_extent.height },
+ .extent = { extent.width, extent.height },
},
.clearValueCount = 0,
.pClearValues = NULL,
@@ -381,7 +380,6 @@ anv_meta_blit2d(struct anv_cmd_buffer *cmd_buffer,
meta_emit_blit2d(cmd_buffer,
&src_iview,
src_offset_el,
- (VkExtent3D){rects[r].width, rects[r].height, 1},
&dst_iview,
dst_offset_el,
(VkExtent3D){rects[r].width, rects[r].height, 1});