summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2006-05-08 09:29:34 +0000
committerMichel Daenzer <michel@daenzer.net>2006-05-08 09:29:34 +0000
commitbc93a46c4fe499f23b9c0ff52e2e36b4c587f7d6 (patch)
tree2cde7b5c14b2b47160e13164ec9ef5e9bb7530f5 /src
parent2b0cdd9448a24ea067b0d78f319b99c1041df2e0 (diff)
Bugzilla #4640 <https://bugs.freedesktop.org/show_bug.cgi?id=4640> Patch
#5273 <https://bugs.freedesktop.org/attachment.cgi?id=5273>: Add cases for FOURCC_RGBA32 and FOURCC_RGB24. This prevents clients from receiving incorrect data sizes with these formats. (Jan Schmidt)
Diffstat (limited to 'src')
-rw-r--r--src/radeon_video.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index d1e5f3f..d567e19 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -2925,6 +2925,18 @@ RADEONQueryImageAttributes(
if(offsets) offsets[2] = size;
size += tmp;
break;
+ case FOURCC_RGBA32:
+ size = *w << 2;
+ if(pitches) pitches[0] = size;
+ size *= *h;
+ break;
+ case FOURCC_RGB24:
+ size = *w * 3;
+ if(pitches) pitches[0] = size;
+ size *= *h;
+ break;
+ case FOURCC_RGBT16:
+ case FOURCC_RGB16:
case FOURCC_UYVY:
case FOURCC_YUY2:
default: