[GPU] Declare unused register fields explicitly

This commit is contained in:
Triang3l
2024-05-02 23:31:13 +03:00
parent f6b5424a9f
commit 9ebe25fd77
2 changed files with 87 additions and 52 deletions

View File

@@ -1067,8 +1067,9 @@ union alignas(uint32_t) LoopConstant {
// The resulting aL is `iterator * step + start`, 10-bit, and has the real
// range of [-256, 256], according to the IPR2015-00325 sequencer
// specification.
uint32_t start : 8; // +8
int32_t step : 8; // +16
uint32_t start : 8; // +8
int32_t step : 8; // +16
uint32_t _pad_24 : 8; // +24
};
};
static_assert_size(LoopConstant, sizeof(uint32_t));
@@ -1208,7 +1209,7 @@ union alignas(uint32_t) xe_gpu_texture_fetch_t {
union { // dword_2
struct {
uint32_t width : 24;
uint32_t : 8;
uint32_t _pad_88 : 8;
} size_1d;
struct {
uint32_t width : 13;