Skip to content

[IGraphic] Issue with union #332

Description

@Hideman85

While debugging inside The-Forge for understanding why it cannot find the right device queue I found the following issue:

union
{
uint8_t mGraphicsQueueFamilyIndex;
uint8_t mTransferQueueFamilyIndex;
uint8_t mComputeQueueFamilyIndex;
};
uint8_t mQueueFamilyIndices[3];

This code does an union on the 3 uint not with the array as I'm pretty sure is expected.

Should be as follow:

union {
    struct {
        uint8_t mGraphicsQueueFamilyIndex;
        uint8_t mTransferQueueFamilyIndex;
        uint8_t mComputeQueueFamilyIndex;
    };
    uint8_t mQueueFamilyIndices[3];
};

Therefore the 3 uint are united to the array. Hope this helps.
I'm still trying to figure out since I've update from 1.58 to new FSL2 & up to 1.63 why nothing runs anymore.

EDIT: I just checked the diff with 1.58 revision and it was actually good beforehand 🤔

union
{
struct
{
uint8_t mGraphicsQueueFamilyIndex;
uint8_t mTransferQueueFamilyIndex;
uint8_t mComputeQueueFamilyIndex;
};
uint8_t mQueueFamilyIndices[3];
};

Additionally, could you please add me back to the new discord server 🙏 I know it is recent, private and selection.
I've been accepted and then ejected after trying to get understanding & help on my issue.
I would be really grateful if you could add me back and help each others around 🙌

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions