https://bugs.kde.org/show_bug.cgi?id=498328
            Bug ID: 498328
           Summary: HDR not working for dx12/vk3d titles (Gamescope)
    Classification: Plasma
           Product: kwin
           Version: 6.2.5
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-drm
          Assignee: kwin-bugs-n...@kde.org
          Reporter: syed.talha.kha...@gmail.com
  Target Milestone: ---

I am trying hdr on kde, I am able to run DXVK titles and MPV (wit the vk
layer), and those work perfect. I just have HDR400, My monitor isn't that great
when it comes to hdr, but still look better never the less.

But when i try to run dx12 titles in gamescope, I just get black screen, but
the game is running. Audio everything is working but no display.

I get these error, when I try to run dx12 title with hdr, DXVK and MPV works
fine.

```
[Gamescope WSI] Refusing to make swapchain (unsupported VkFormat) for xid:
0x160005d - format: VK_FORMAT_A2B10G10R10_UNORM_PACK32 - colorspace:
VK_COLOR_SPACE_HDR10_ST2084_EXT - flip: true
[Gamescope WSI] Creating swapchain for xid: 0x160005d - oldSwapchain: (nil) -
provided minImageCount: 4 - minImageCount: 4 - format:
VK_FORMAT_A2B10G10R10_UNORM_PACK32 - colorspace:
VK_COLOR_SPACE_HDR10_ST2084_EXT - flip: true
```
My monitor Edid:
```
─❯ edid-decode /sys/class/drm/card0-DP-3/edid

edid-decode (hex):

00 ff ff ff ff ff ff 00 04 72 2f 07 87 21 00 35
32 21 01 04 b5 46 28 78 3b d4 69 ab 50 48 a6 27
0f 4f 56 2f cf 00 d1 c0 b3 00 95 00 81 80 71 4f
81 c0 81 40 a9 40 1c 5f 00 b4 a0 a0 29 50 30 20
35 00 80 68 21 00 00 1a 00 00 00 fd 00 1f a5 f2
f2 42 01 0a 20 20 20 20 20 20 00 00 00 fc 00 45
49 33 32 32 51 55 52 0a 20 20 20 20 00 00 00 10
00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 d4

02 03 33 40 4d 01 02 03 04 90 11 12 13 1f 3f 5f
60 61 23 09 07 07 83 01 00 00 e3 05 c2 00 6d 1a
00 00 02 17 30 a5 00 04 62 20 5f 23 e6 06 07 01
62 5f 21 f5 bd 00 a0 a0 a0 32 50 20 40 35 00 80
68 21 00 00 1a 86 6f 80 a0 70 38 40 40 30 20 35
00 e0 0e 11 00 00 1a 98 e2 00 a0 a0 a0 29 50 30
20 35 00 80 68 21 00 00 1a 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10

70 12 79 00 00 03 01 14 8b 01 01 00 ff 09 77 00
2f 00 1f 00 9f 05 32 00 02 80 04 00 07 00 0a 08
81 00 08 04 00 04 02 10 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 eb 90

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: ACR
    Model: 1839
    Serial Number: 889201031 (0x35002187)
    Made in: week 50 of 2023
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 70 cm x 40 cm
    Gamma: 2.20
    DPMS levels: Off
    Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
    First detailed timing includes the native pixel format and preferred
refresh rate
    Display supports continuous frequencies
  Color Characteristics:
    Red  : 0.6708, 0.3134
    Green: 0.2822, 0.6484
    Blue : 0.1533, 0.0605
    White: 0.3105, 0.3369
  Established Timings I & II:
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    DMT 0x05:   640x480    72.808802 Hz   4:3     37.861 kHz     31.500000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x08:   800x600    56.250000 Hz   4:3     35.156 kHz     36.000000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0a:   800x600    72.187572 Hz   4:3     48.077 kHz     50.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x11:  1024x768    70.069359 Hz   4:3     56.476 kHz     75.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
    DMT 0x24:  1280x1024   75.024675 Hz   5:4     79.976 kHz    135.000000 MHz
  Standard Timings:
    DMT 0x52:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x15:  1152x864    75.000000 Hz   4:3     67.500 kHz    108.000000 MHz
    DMT 0x55:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    DMT 0x20:  1280x960    60.000000 Hz   4:3     60.000 kHz    108.000000 MHz
    DMT 0x33:  1600x1200   60.000000 Hz   4:3     75.000 kHz    162.000000 MHz
  Detailed Timing Descriptors:
    DTD 1:  2560x1440   60.000887 Hz  16:9     88.861 kHz    243.480000 MHz
(640 mm x 360 mm)
                 Hfront   48 Hsync  32 Hback  100 Hpol P
                 Vfront    3 Vsync   5 Vback   33 Vpol N
    Display Range Limits:
      Monitor ranges (Range Limits Only): 31-165 Hz V, 242-242 kHz H, max
dotclock 660 MHz
    Display Product Name: 'EI322QUR'
    Dummy Descriptor:
  Extension blocks: 2
Checksum: 0xd4

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Basic audio support
  Native detailed modes: 0
  Video Data Block:
    VIC   1:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    VIC   2:   720x480    59.940060 Hz   4:3     31.469 kHz     27.000000 MHz
    VIC   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC   4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
(native)
    VIC  17:   720x576    50.000000 Hz   4:3     31.250 kHz     27.000000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
    VIC  19:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz
    VIC  63:  1920x1080  120.000000 Hz  16:9    135.000 kHz    297.000000 MHz
    VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
    VIC  96:  3840x2160   50.000000 Hz  16:9    112.500 kHz    594.000000 MHz
    VIC  97:  3840x2160   60.000000 Hz  16:9    135.000 kHz    594.000000 MHz
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Colorimetry Data Block:
    xvYCC709
    BT2020YCC
    BT2020RGB
  Vendor-Specific Data Block (AMD), OUI 00-00-1A:
    Version: 2.23
    Minimum Refresh Rate: 48 Hz
    Maximum Refresh Rate: 165 Hz
    Flags 1.x: 0x00
    Flags 2.x: 0x04
    Maximum luminance: 98 (417.710 cd/m^2)
    Minimum luminance: 32 (0.066 cd/m^2)
    Maximum luminance (without local dimming): 95 (391.429 cd/m^2)
    Minimum luminance (without local dimming): 35 (0.074 cd/m^2)
  HDR Static Metadata Data Block:
    Electro optical transfer functions:
      Traditional gamma - SDR luminance range
      Traditional gamma - HDR luminance range
      SMPTE ST2084
    Supported static metadata descriptors:
      Static metadata type 1
    Desired content max luminance: 98 (417.710 cd/m^2)
    Desired content max frame-average luminance: 95 (391.429 cd/m^2)
    Desired content min luminance: 33 (0.070 cd/m^2)
  Detailed Timing Descriptors:
    DTD 2:  2560x1440  119.988650 Hz  16:9    178.783 kHz    486.290000 MHz
(640 mm x 360 mm)
                 Hfront   32 Hsync  64 Hback   64 Hpol P
                 Vfront    3 Vsync   5 Vback   42 Vpol N
    DTD 3:  1920x1080  119.982181 Hz  16:9    137.260 kHz    285.500000 MHz
(480 mm x 270 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   56 Vpol N
    DTD 4:  2560x1440  144.000477 Hz  16:9    213.265 kHz    580.080000 MHz
(640 mm x 360 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   33 Vpol N
Checksum: 0x10  Unused space in Extension Block: 22 bytes

----------------

Block 2, DisplayID Extension Block:
  Version: 1.2
  Extension Count: 0
  Display Product Type: Extension Section
  Video Timing Modes Type 1 - Detailed Timings Data Block:
    DTD:  2560x1440  164.999950 Hz   1:1    246.015 kHz    659.320000 MHz
(aspect 1:1, no 3D stereo)
               Hfront   48 Hsync  32 Hback   40 Hpol N
               Vfront    3 Vsync   5 Vback   43 Vpol P
  Supported Timing Modes Type 1 - VESA DMT Timings Data Block:
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x1c:  1280x800    59.810326 Hz  16:10    49.702 kHz     83.500000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x33:  1600x1200   60.000000 Hz   4:3     75.000 kHz    162.000000 MHz
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
    DMT 0x45:  1920x1200   59.884600 Hz  16:10    74.556 kHz    193.250000 MHz
  Checksum: 0xeb
Checksum: 0x90
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to