[Bug 52684] Command and Conquer Generals (and C&C Zero Hour) have no ground textures

WineHQ Bugzilla wine-bugs at winehq.org
Wed Mar 23 17:05:15 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52684

--- Comment #8 from Henri Verbeet <hverbeet at gmail.com> ---
(In reply to Zebediah Figura from comment #7)
> (3) When loading a texture into TEXTURE_RGB whose valid locations are SYSMEM
> and CLEARED, we end up clearing the texture again, which can be avoided (if
> both of those locations really were valid, then SYSMEM is already cleared).
> This may not be worth optimizing, though, since it'd take some really weird
> usage to get here after fixing (1). [You'd have to do something like create
> a staging texture, map it read-only without initializing it, and then copy
> from it.]

Uploading from SYSMEM to TEXTURE_RGB in this case may not be quite optimal
either. It would be better than first clearing SYSMEM and then uploading from
there, but ideally we'd just clear on the GPU here. The GPU clear would almost
certainly be a "fast clear", which would be practically free.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list