diff options
author | Marek Olšák <[email protected]> | 2012-01-27 21:20:27 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-31 00:54:34 +0100 |
commit | f183cc9ce3ad1d043bdf8b38fd519e8f437714fc (patch) | |
tree | 81ebf822531092cdfefab73e967bacea2ed13679 /src/gallium/drivers/r600/r600_pipe.h | |
parent | ac3a765589a881c56f351514d6436760edd4a291 (diff) |
r600g: set minimum point size to 1.0 for non-sprite non-aa points
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 47c6ad0335a..7d0d697243d 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -385,4 +385,11 @@ static inline unsigned r600_tex_aniso_filter(unsigned filter) /* else */ return 4; } +/* 12.4 fixed-point */ +static INLINE unsigned r600_pack_float_12p4(float x) +{ + return x <= 0 ? 0 : + x >= 4096 ? 0xffff : x * 16; +} + #endif |