diff options
author | Rob Clark <[email protected]> | 2018-06-15 16:32:42 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-06-21 08:54:47 -0400 |
commit | cf0c7258ee0524709ab6d05a9aafc7415361bd23 (patch) | |
tree | 1d22ac00b91293e71253373586dd79c1506a3442 /src/gallium/drivers/freedreno/freedreno_util.h | |
parent | b6e690ef80f71cc62fa1095a2601087341be22a3 (diff) |
freedreno/a5xx: MSAA
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_util.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_util.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h index b3511d8f15e..9645561e071 100644 --- a/src/gallium/drivers/freedreno/freedreno_util.h +++ b/src/gallium/drivers/freedreno/freedreno_util.h @@ -431,6 +431,22 @@ pack_rgba(enum pipe_format format, const float *rgba) #define BIT(bit) (1u << bit) /* + * a3xx+ helpers: + */ + +static inline enum a3xx_msaa_samples +fd_msaa_samples(unsigned samples) +{ + switch (samples) { + default: + debug_assert(0); + case 1: return MSAA_ONE; + case 2: return MSAA_TWO; + case 4: return MSAA_FOUR; + } +} + +/* * a4xx+ helpers: */ |