[PATCH v3 0/10] MR79: wined3d: Refactor format flags into two groups.

Chip Davis (@cdavis5e) wine at gitlab.winehq.org
Wed May 18 16:33:59 CDT 2022


There are only three unused format flags left. I will soon submit changes
which add four more format flags.

I've noticed that format flags generally fall into two groups:

* The first group consists of flags describing the content of a pixel
  format, e.g. whether or not this is a depth format, or whether this is
  a blocked format. These flags are the same for all resource types.
* The second group consists of flags describing capabilities of the
  implementation with this format. These can and do vary by resource
  type.

Only the second group needs to be stored per-resource-type.

--
  v3: wined3d: Rename format flags to caps.
      wined3d: Move WINED3DFMT_FLAG_CAST_TO_BLOCK to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_MAPPABLE to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_COMPRESSED and HEIGHT_SCALE to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_BLOCKS, BROKEN_PITCH, and BLOCKS_NO_VERIFY to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_EXTENSION to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_BUMPMAP to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_NORMALISED to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_INTEGER to the attributes group.
      wined3d: Move WINED3DFMT_FLAG_FLOAT to a separate group.
 
https://gitlab.winehq.org/wine/wine/-/merge_requests/79



More information about the wine-devel mailing list