GetDesc returns zero mips for automatically sized textures #773
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#773
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fuzeofficlal on GitHub · 2026-11-24 10:14 UTC · original
On
ffe310e, creating a texture withMipLevels = 0allocates the full mip chain, but the guest resource'sGetDescreturns zero. Native D3D12 returns the allocated count. A clear loop driven by that descriptor skips every mip of a synthetic 4×4 texture.RTX 5090 and WARP gave the same results. Automatic 1D, 2D, 2D array, and 3D cases also reported the same counts as native D3D12 after the patch. Both diagnostic runs passed 53 tests with one benchmark ignored.
Source commit uses the existing mip-count calculation when returning the descriptor for an automatically sized texture.
@Marvisak on GitHub · 2026-11-25 03:51 UTC · original
Automated triage for the maintainers.
Confirmed on
main:resource_desc(the resource'sGetDesc) incrates/victory-gpu/src/resource.rswrites back the description exactly as the title created it. A texture created withMipLevels = 0therefore reports 0, althoughmip_countin the same file allocates the full chain.Open pull request #933 ("report allocated mips from GetDesc") addresses it. Please compare your commit with it and comment there, or open your own pull request if yours differs. Pull requests are open to everyone. The
GetDescreturn-value issue is separate (#779).Generated by Claude Code