diff options
author | Michel Daenzer <michel@daenzer.net> | 2006-05-08 09:29:34 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2006-05-08 09:29:34 +0000 |
commit | bc93a46c4fe499f23b9c0ff52e2e36b4c587f7d6 (patch) | |
tree | 2cde7b5c14b2b47160e13164ec9ef5e9bb7530f5 /src/radeon_video.c | |
parent | 2b0cdd9448a24ea067b0d78f319b99c1041df2e0 (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/radeon_video.c')
-rw-r--r-- | src/radeon_video.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index d1e5f3f3..d567e19f 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: |