Hash :
34faa3db
Author :
Date :
2025-02-08T15:17:10
Fix issue that stride setting is incorrect when rotation is true 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>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// shaders/gen/BlitResolveStencilNoExport.comp.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kBlitResolveStencilNoExport_comp_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x6d,0x96,0x6d,0x4c,0x95,0x65,
0x18,0xc7,0x9f,0x73,0x0e,0x9c,0x83,0x47,0x01,0x49,0x50,0x5e,0x7c,0x89,0x70,0x5a,
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f0,0x1f,0x37,0xf6,0xfb,0xb9,0x67,0x45,0x22,0x39,0x48,
0x6c,0xc6,0xca,0xed,0x5f,0xc4,0xf8,0xf8,0x80,0xf7,0x83,0xd4,0x57,0xf7,0x87,0xc0,
0x8a,0xa5,0x5a,0x47,0xd0,0xfb,0x10,0xec,0x08,0x7a,0xba,0x1f,0x02,0x2b,0x91,0x3e,
0x38,0x86,0x0f,0x9f,0xc7,0x71,0xd3,0x07,0x9f,0x92,0x87,0xed,0xa1,0xd3,0xca,0xd3,
0x9d,0x6b,0xcc,0xdd,0xab,0xa4,0xeb,0x91,0xf0,0xfe,0x5c,0x24,0xe6,0xf7,0xf8,0x18,
0x23,0xa6,0xee,0xc7,0xd3,0xce,0xf0,0x12,0xb6,0xaa,0xff,0x0b,0x32,0xdb,0xbb,0x57,
0xa9,0x6f,0xb9,0x68,0xeb,0x1d,0xb8,0x06,0x76,0x95,0x3e,0xae,0x90,0x6a,0x45,0xc9,
0x2d,0xe0,0xde,0xfc,0x25,0x88,0xd6,0x70,0x42,0x76,0xd7,0xc1,0x6f,0xc9,0xbb,0xde,
0x93,0x5f,0x91,0xeb,0x73,0xb5,0x68,0xe5,0x32,0x0b,0xb3,0xb9,0x47,0x95,0xc4,0xcd,
0x03,0xef,0x12,0x9d,0xa4,0xbb,0xdf,0x21,0xa6,0x77,0x69,0x37,0xb9,0xe7,0x83,0x7b,
0x3f,0xb3,0xf1,0x53,0x60,0xfc,0xcc,0x01,0xf7,0x36,0x85,0x60,0x8f,0x8b,0x4d,0x82,
0xd9,0x91,0x0f,0xae,0x7e,0x4a,0x99,0x39,0x0b,0xb8,0x17,0x95,0xdc,0xc3,0x32,0xf0,
0x4d,0x62,0x95,0x60,0xde,0x96,0xb1,0xa2,0xf0,0xfe,0x5c,0xec,0x17,0x33,0x77,0x17,
0xe2,0x7b,0x40,0xec,0xf5,0xde,0xdc,0x03,0xae,0x35,0x49,0x51,0x93,0x9b,0x22,0x53,
0xfc,0x5e,0x57,0xef,0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0d,0xb8,0x4c,0xc0,0x47,0x75,0xdb,0xd0,0x6d,0xe3,0x3b,0x21,
0xce,0x4c,0xb9,0x69,0x66,0xa0,0x9f,0x5d,0xad,0xa6,0xf7,0x7f,0xa0,0x07,0x2e,0x99,
0xde,0xff,0x11,0x7c,0x37,0xff,0x15,0x97,0xc1,0xfc,0xf7,0xd9,0x4f,0x7c,0x57,0x5d,
0x26,0x96,0x62,0x3f,0x83,0xe7,0x39,0xdf,0x71,0xf7,0x7d,0x79,0x85,0x6f,0xd0,0x2a,
0xe4,0x0f,0xcb,0x99,0x5c,0xe1,0x3c,0xed,0x77,0x8f,0x3e,0xff,0x96,0x0a,0x2e,0x97,
0xf5,0x1f,0x73,0x58,0x0a,0xd2,0xe4,0x0f,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// layout(local_size_x = 8, local_size_y = 8, local_size_z = 1)in;
//
// layout(push_constant)uniform PushConstants {
//
// vec2 offset;
// vec2 stretch;
// vec2 invSrcExtent;
// int srcLayer;
// int srcWidth;
// int srcHeight;
//
// bool flipX;
// bool flipY;
// bool rotateXY;
//
// ivec4 blitArea;
// int destPitch;
// } params;
//
// layout(set = 0, binding = 0)buffer dst
// {
//
// uint destData[];
// };
//
// layout(set = 0, binding = 1)uniform utexture2D stencil;
//
// layout(set = 0, binding = 2)uniform sampler blitSampler;
//
// void main()
// {
// ivec2 destSubImageCoords = ivec2(gl_GlobalInvocationID . x * 4, gl_GlobalInvocationID . y);
// if(any(lessThanEqual(params . blitArea . zw, destSubImageCoords)))
// {
// return;
// }
//
// destSubImageCoords += params . blitArea . xy;
// vec2 srcImageCoords = vec2(destSubImageCoords);
//
// srcImageCoords *= params . stretch;
// srcImageCoords += vec2(0.5);
//
// srcImageCoords -= params . offset;
//
// if(params . flipX)
// srcImageCoords . x = - srcImageCoords . x;
// if(params . flipY)
// srcImageCoords . y = - srcImageCoords . y;
// if(params . rotateXY)
// srcImageCoords . xy = srcImageCoords . yx;
//
// 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)&&
// (srcImageCoords . y >= 0 && srcImageCoords . y < params . srcHeight))
// {
//
// uint stencilValue = texture(usampler2D(stencil, blitSampler), srcImageCoords * params . invSrcExtent). x;
//
// outStencils |=(stencilValue & 0xFF)<<(i * 8);
//
// }
//
// if(params . rotateXY)
// {
// srcImageCoords . y += yDir;
// }
// else
// {
// srcImageCoords . x += xDir;
// }
// }
//
// destData[gl_GlobalInvocationID . y * params . destPitch + gl_GlobalInvocationID . x]= outStencils;
// }