diff options
Diffstat (limited to 'src/radeon_video.h')
-rw-r--r-- | src/radeon_video.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/radeon_video.h b/src/radeon_video.h index b9ead1c5..34bfb307 100644 --- a/src/radeon_video.h +++ b/src/radeon_video.h @@ -15,6 +15,20 @@ #include "bicubic_table.h" +/* + * This function takes a float and packs it into a uint32_t. Thanks, Mesa! + */ +static inline uint32_t r300PackFloat32(float fl) +{ + union { + float fl; + uint32_t u; + } u; + + u.fl = fl; + return u.u; +} + /* Xvideo port struct */ typedef struct { uint32_t transform_index; |