Skip to contentSkip to conversation

Add missing depth 30 -> cpp=4 handling for DRI2.

PATCH New Mario Kleiner 1 participant 2 messages Jan 24, 2018 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add missing depth 30 -> cpp=4 handling for DRI2.

Missing this apparently didn't cause any ill side effects, only a bit of confusion when looking at xtrace's of DRI2 clients.

---
 src/radeon_dri2.c | 1 +
 1 file changed, 1 insertion(+)
src/radeon_dri2.c +1 -0
index b569bb4..6dce2c1 100644
@@ -125,6 +125,7 @@ radeon_dri2_create_buffer2(ScreenPtr pScreen,
 	    cpp = 2;
 	    break;
 	case 24:
+	case 30:
 	    cpp = 4;
 	    break;
 	default:
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20180124171938.26282-1-mario.kleiner.de-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 2/2 radeon: Make XvMC extension initialize at depth 30.

---
 src/radeon_textured_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/radeon_textured_video.c +2 -2
index 63631c9..23bdfd1 100644
@@ -499,11 +499,11 @@ static XF86VideoEncodingRec DummyEncodingEG[1] =
     }
 };
 
-#define NUM_FORMATS 3
+#define NUM_FORMATS 4
 
 static XF86VideoFormatRec Formats[NUM_FORMATS] =
 {
-    {15, TrueColor}, {16, TrueColor}, {24, TrueColor}
+    {15, TrueColor}, {16, TrueColor}, {24, TrueColor}, {30, TrueColor}
 };
 
 #define NUM_ATTRIBUTES 2
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx