[g3dvl] fix of my one bug in SCALE_FACTOR_16_TO_9
authorChristian König <deathsimple@vodafone.de>
Sun, 14 Nov 2010 01:17:39 +0000 (02:17 +0100)
committerChristian König <deathsimple@vodafone.de>
Sun, 14 Nov 2010 01:17:39 +0000 (02:17 +0100)
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c

index 6195eafcc5673cbb9042be41b8ff82196d3ffb7f..fb420cbe1f7981be728a158fca6624c195871d56 100644 (file)
@@ -42,7 +42,7 @@
 #define MACROBLOCK_HEIGHT 16
 #define BLOCK_WIDTH 8
 #define BLOCK_HEIGHT 8
-#define SCALE_FACTOR_16_TO_9 (32767.0f / 255.0f)
+#define SCALE_FACTOR_16_TO_9 (32768.0f / 256.0f)
 
 struct vertex_shader_consts
 {