Commit 21fb75fe by Ben Clayton

Device/Blitter: Initialize filter3D fields

Caught with clang -Wextra. Bug: b/150155499 Change-Id: I80bdcaeb7f11954e57fd6e27d8747625eba66694 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43990 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com> Presubmit-Ready: Ben Clayton <bclayton@google.com>
parent 7b1ae2b1
...@@ -126,6 +126,8 @@ void Blitter::clear(void *pixel, vk::Format format, vk::Image *dest, const vk::F ...@@ -126,6 +126,8 @@ void Blitter::clear(void *pixel, vk::Format format, vk::Image *dest, const vk::F
0, 1, // z0d, z1d 0, 1, // z0d, z1d
0, 0, 0, // sWidth, sHeight, sDepth 0, 0, 0, // sWidth, sHeight, sDepth
false, // filter3D
}; };
if(renderArea && dest->is3DSlice()) if(renderArea && dest->is3DSlice())
...@@ -1739,6 +1741,8 @@ void Blitter::blitToBuffer(const vk::Image *src, VkImageSubresourceLayers subres ...@@ -1739,6 +1741,8 @@ void Blitter::blitToBuffer(const vk::Image *src, VkImageSubresourceLayers subres
static_cast<int>(extent.width), // sWidth static_cast<int>(extent.width), // sWidth
static_cast<int>(extent.height), // sHeight static_cast<int>(extent.height), // sHeight
static_cast<int>(extent.depth), // sDepth static_cast<int>(extent.depth), // sDepth
false, // filter3D
}; };
VkImageSubresourceLayers srcSubresLayers = subresource; VkImageSubresourceLayers srcSubresLayers = subresource;
...@@ -1799,6 +1803,8 @@ void Blitter::blitFromBuffer(const vk::Image *dst, VkImageSubresourceLayers subr ...@@ -1799,6 +1803,8 @@ void Blitter::blitFromBuffer(const vk::Image *dst, VkImageSubresourceLayers subr
static_cast<int>(extent.width), // sWidth static_cast<int>(extent.width), // sWidth
static_cast<int>(extent.height), // sHeight; static_cast<int>(extent.height), // sHeight;
static_cast<int>(extent.depth), // sDepth; static_cast<int>(extent.depth), // sDepth;
false, // filter3D
}; };
VkImageSubresourceLayers dstSubresLayers = subresource; VkImageSubresourceLayers dstSubresLayers = subresource;
...@@ -1911,6 +1917,8 @@ void Blitter::blit(const vk::Image *src, vk::Image *dst, VkImageBlit region, VkF ...@@ -1911,6 +1917,8 @@ void Blitter::blit(const vk::Image *src, vk::Image *dst, VkImageBlit region, VkF
static_cast<int>(srcExtent.width), // sWidth static_cast<int>(srcExtent.width), // sWidth
static_cast<int>(srcExtent.height), // sHeight static_cast<int>(srcExtent.height), // sHeight
static_cast<int>(srcExtent.depth), // sDepth static_cast<int>(srcExtent.depth), // sDepth
false, // filter3D
}; };
VkImageSubresourceLayers srcSubresLayers = { VkImageSubresourceLayers srcSubresLayers = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment