Skip to content

DXMT: keep indexed draw base vertex signed#758

Open
moreaki wants to merge 1 commit into
VirtualBox:mainfrom
moreaki:agent/dxmt-signed-base-vertex
Open

DXMT: keep indexed draw base vertex signed#758
moreaki wants to merge 1 commit into
VirtualBox:mainfrom
moreaki:agent/dxmt-signed-base-vertex

Conversation

@moreaki

@moreaki moreaki commented Jul 8, 2026

Copy link
Copy Markdown

Summary

Keep indexed draw base vertex values signed across the DXMT/winemetal command boundary.

BaseVertexLocation is signed in D3D11, and Metal's indexed draw baseVertex argument is signed as well. This patch changes the stored command fields from uint32_t to int32_t so negative base vertex values are not reinterpreted as very large unsigned offsets.

Validation

Closes #754.

Signed-off-by: Roberto Nibali rnibali@gmail.com

D3D11 indexed draw calls take BaseVertexLocation as a signed INT, and Metal's baseVertex parameter is signed as well. Keep the DXMT indirect argument and winemetal command fields signed so negative base-vertex offsets are not reinterpreted as large unsigned values.

Signed-off-by: Roberto Nibali <rnibali@gmail.com>
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DXMT: keep indexed draw base vertex signed

1 participant