Skip to content

Commit

Permalink
Fix issue that stride setting is incorrect when rotation is true
Browse files Browse the repository at this point in the history
When rotateXY is true, stride should increase or decrease
on the Y axis.

Bug: angleproject:395131251
Change-Id: I0f5363c9952ccdf0a036499a9f918853eff7cd10
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6242496
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Charlie Lao <cclao@google.com>
Auto-Submit: Robic Sun <Robic.Sun@arm.com>
  • Loading branch information
Robic Sun authored and Angle LUCI CQ committed Feb 22, 2025
1 parent 23df4f2 commit 34faa3d
Show file tree
Hide file tree
Showing 11 changed files with 581 additions and 405 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
"src/libANGLE/renderer/vulkan/shaders/gen/BlitResolve.frag.00000017.inc":
"6f1e10dcb19a12e5e86e98ceab2c6e45",
"src/libANGLE/renderer/vulkan/shaders/gen/BlitResolveStencilNoExport.comp.00000000.inc":
"3b131ef841a7d119035aefc8487826bb",
"f0e825d5d33e9198899694f8c2d1035c",
"src/libANGLE/renderer/vulkan/shaders/gen/BlitResolveStencilNoExport.comp.00000001.inc":
"f60edde525e823378168c890873f4be7",
"4841be9eb05c7eb8908fe69862704b03",
"src/libANGLE/renderer/vulkan/shaders/gen/BlitResolveStencilNoExport.comp.00000002.inc":
"d770e8274bcbce8f6d03fd13ce27b9bc",
"ab90ab270c56053991a2a19f5d48318c",
"src/libANGLE/renderer/vulkan/shaders/gen/BlitResolveStencilNoExport.comp.00000003.inc":
"de59d829ddb735d36238cc25e0022cd6",
"ff4ea152b556fa86e4249bb123afef61",
"src/libANGLE/renderer/vulkan/shaders/gen/ConvertIndex.comp.00000000.inc":
"82426086e0b5aea32d0f756a1f6e5342",
"src/libANGLE/renderer/vulkan/shaders/gen/ConvertIndex.comp.00000001.inc":
Expand Down Expand Up @@ -298,7 +298,7 @@
"src/libANGLE/renderer/vulkan/shaders/src/BlitResolve.inc":
"77073cb6a80a472c5a23165f6cb41847",
"src/libANGLE/renderer/vulkan/shaders/src/BlitResolveStencilNoExport.comp":
"163151792f2ffed48258abd66a1bc10c",
"53dbdb3379bd11bb1ae6b58f0a505787",
"src/libANGLE/renderer/vulkan/shaders/src/BlitResolveStencilNoExport.comp.json":
"8a3e9ff34eba0386edb98048547a272b",
"src/libANGLE/renderer/vulkan/shaders/src/ConvertIndex.comp":
Expand Down
1 change: 1 addition & 0 deletions src/libANGLE/renderer/vulkan/UtilsVk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3193,6 +3193,7 @@ angle::Result UtilsVk::stencilBlitResolveNoShaderExport(ContextVk *contextVk,
shaderParams.invSrcExtent[1] = 1.0f / params.srcExtents[1];
shaderParams.srcLayer = params.srcLayer;
shaderParams.srcWidth = params.srcExtents[0];
shaderParams.srcHeight = params.srcExtents[1];
shaderParams.dstPitch = bufferRowLengthInUints;
shaderParams.blitArea[0] = params.blitArea.x;
shaderParams.blitArea[1] = params.blitArea.y;
Expand Down
5 changes: 3 additions & 2 deletions src/libANGLE/renderer/vulkan/UtilsVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,12 @@ class UtilsVk : angle::NonCopyable
float invSrcExtent[2] = {};
int32_t srcLayer = 0;
int32_t srcWidth = 0;
int32_t blitArea[4] = {};
int32_t dstPitch = 0;
int32_t srcHeight = 0;
uint32_t flipX = 0;
uint32_t flipY = 0;
uint32_t rotateXY = 0;
int32_t blitArea[4] = {};
int32_t dstPitch = 0;
};

struct ExportStencilShaderParams
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,87 @@

#pragma once
constexpr uint8_t kBlitResolveStencilNoExport_comp_00000002[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x5d,0x95,0xdb,0x6f,0x54,0x55,
0x14,0xc6,0xf7,0xcc,0xb4,0x33,0x65,0xa4,0x2d,0xc5,0x16,0x90,0x7b,0xad,0x29,0xe8,
0x18,0xc0,0x04,0x99,0x8a,0x14,0x95,0x26,0x22,0xd8,0x56,0xb0,0x28,0x8d,0x2f,0xb5,
0x09,0xb4,0x35,0x08,0xb6,0x11,0xd0,0x36,0xe5,0xa6,0x42,0x20,0x3e,0x98,0x40,0x6d,
0x02,0x42,0x42,0xe4,0x16,0x63,0xa2,0x21,0x26,0x88,0xd6,0x27,0xd4,0xf8,0x17,0x79,
0x41,0x62,0x74,0x7d,0xfb,0xfc,0xb6,0xac,0xcc,0x49,0x76,0xf6,0x59,0xdf,0xba,0x7e,
0x6b,0xaf,0x7d,0x4e,0x21,0xdf,0x51,0x0a,0x21,0x17,0xca,0xa1,0x21,0xfc,0x1c,0xb2,
0xa7,0x25,0xe4,0x0d,0x09,0xe1,0x91,0x50,0x8c,0xfb,0xf6,0xde,0x81,0xde,0x75,0xef,
0x1f,0xde,0xb7,0x6e,0xe3,0xb3,0x1b,0xa4,0x6f,0x0a,0x85,0x68,0x27,0x5d,0xb3,0xd9,
0xd4,0xdb,0x5e,0x67,0xeb,0xe0,0xf0,0x3b,0x87,0x84,0x37,0xda,0x5a,0x60,0x78,0x5d,
0x8c,0x15,0x2c,0x72,0xb6,0x62,0x2c,0x43,0x1b,0x63,0xec,0x10,0x96,0xdb,0x7a,0xc5,
0xbc,0x57,0x90,0xb7,0x83,0x3d,0x61,0x39,0xb0,0x06,0x87,0xe5,0xc1,0x16,0x38,0xac,
0x00,0xb6,0xc4,0x61,0x75,0x60,0x3e,0x47,0x3d,0xd8,0x6a,0x87,0x15,0xc1,0x36,0x38,
0xac,0x04,0xb6,0xd1,0x61,0x0d,0x60,0x5d,0x0e,0x9b,0x07,0xb6,0x25,0xf2,0x2a,0xfc,
0x5f,0x9f,0x38,0x1e,0xb7,0xfd,0x71,0xf8,0x24,0xb9,0xdd,0xf5,0xe0,0x02,0xb9,0xeb,
0x88,0x37,0x53,0xd3,0x03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bd,
0xa3,0xe8,0x4a,0xf6,0x3d,0xd8,0x31,0xfa,0xf8,0x28,0xfc,0x62,0x7e,0xa3,0xae,0xcf,
0xd5,0xdb,0x57,0xd8,0xbb,0x63,0xf0,0x10,0xbf,0xf1,0x92,0xb3,0x3d,0x66,0xe3,0x38,
0xf6,0x63,0x6e,0x7f,0x3f,0x71,0xfb,0xbb,0x0b,0xec,0x53,0xf0,0xab,0xee,0x3e,0xbc,
0x08,0x3e,0xe5,0xee,0xc3,0x71,0xfc,0x1d,0x77,0xb6,0x5f,0xd2,0x93,0xd3,0xce,0xf6,
0x12,0xf8,0x94,0xbb,0xa7,0xa2,0xed,0xb8,0x3b,0xcf,0x3a,0xc3,0x17,0xc9,0xf5,0x12,
0xf9,0x4a,0xb7,0x1f,0xdd,0x7e,0x17,0xe7,0x04,0x35,0xdc,0x56,0x72,0x3f,0xf4,0xb9,
0x7e,0xfb,0x9a,0x7e,0x3b,0xe5,0xfa,0xed,0x1b,0xf0,0x41,0xee,0xe3,0xd3,0x60,0xf1,
0x3f,0xe5,0x5b,0xfe,0x2f,0x4e,0x13,0xab,0x10,0xf6,0xa3,0x88,0x57,0x05,0xdf,0xb9,
0xf0,0x9f,0x75,0x96,0x7f,0xb1,0x46,0xe4,0xeb,0xac,0xe6,0x67,0xd9,0x2f,0xff,0xfd,
0xd7,0xfc,0x8f,0x55,0x6c,0x8d,0x8d,0xff,0x00,0xf2,0xa0,0xf8,0x24,0x54,0x0e,0x00,
0x00
};

// Generated from:
Expand All @@ -96,13 +108,14 @@ constexpr uint8_t kBlitResolveStencilNoExport_comp_00000002[] = {
// vec2 invSrcExtent;
// int srcLayer;
// int srcWidth;
//
// ivec4 blitArea;
// int destPitch;
// int srcHeight;
//
// bool flipX;
// bool flipY;
// bool rotateXY;
//
// ivec4 blitArea;
// int destPitch;
// } params;
//
// layout(set = 0, binding = 0)buffer dst
Expand Down Expand Up @@ -133,14 +146,23 @@ constexpr uint8_t kBlitResolveStencilNoExport_comp_00000002[] = {
// if(params . rotateXY)
// srcImageCoords . xy = srcImageCoords . yx;
//
// int xDir = params . flipX ? - 1 : 1;
// int xDir = 0, yDir = 0;
// if(params . rotateXY)
// {
// yDir = params . flipY ? - 1 : 1;
// }
// else
// {
// xDir = params . flipX ? - 1 : 1;
// }
//
// uint outStencils = 0;
//
// for(int i = 0;i < 4;++ i)
// {
//
// if(srcImageCoords . x >= 0 && srcImageCoords . x < params . srcWidth)
// if((srcImageCoords . x >= 0 && srcImageCoords . x < params . srcWidth)&&
// (srcImageCoords . y >= 0 && srcImageCoords . y < params . srcHeight))
// {
//
// uint stencilValue = texelFetch(stencil, srcImageCoords, 0). x;
Expand All @@ -149,7 +171,14 @@ constexpr uint8_t kBlitResolveStencilNoExport_comp_00000002[] = {
//
// }
//
// srcImageCoords . x += xDir;
// if(params . rotateXY)
// {
// srcImageCoords . y += yDir;
// }
// else
// {
// srcImageCoords . x += xDir;
// }
// }
//
// destData[gl_GlobalInvocationID . y * params . destPitch + gl_GlobalInvocationID . x]= outStencils;
Expand Down
Loading

0 comments on commit 34faa3d

Please sign in to comment.