Chip Davis : wined3d: Move WINED3DFMT_FLAG_FLOAT to a separate group.

Alexandre Julliard julliard at winehq.org
Tue May 24 15:55:01 CDT 2022


Module: wine
Branch: master
Commit: 93add6f3f67f021ffd28d0bffaef9494a3c9ee5c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=93add6f3f67f021ffd28d0bffaef9494a3c9ee5c

Author: Chip Davis <cdavis5x at gmail.com>
Date:   Sun May  8 16:36:56 2022 -0500

wined3d: Move WINED3DFMT_FLAG_FLOAT to a separate group.

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.

Signed-off-by: Chip Davis <cdavis5x at gmail.com>

---

 dlls/wined3d/adapter_gl.c      |   4 +-
 dlls/wined3d/device.c          |   3 +-
 dlls/wined3d/resource.c        |   1 +
 dlls/wined3d/utils.c           | 106 ++++++++++++++++++++++-------------------
 dlls/wined3d/view.c            |   1 +
 dlls/wined3d/wined3d_private.h |   7 ++-
 6 files changed, 68 insertions(+), 54 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=93add6f3f67f021ffd28d0bffaef9494a3c9ee5c



More information about the wine-cvs mailing list