diff options
author | Eric Anholt <[email protected]> | 2017-10-02 17:21:23 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-10 11:42:06 -0700 |
commit | 4b7de2a360ebb2d1cf7b3bbcc849026e5af47e41 (patch) | |
tree | 0e07683e7199e8407821049f15a1c3f19070bda4 /src/gallium | |
parent | f2e6e1bbc381ad6a7575e9940248362f8cb0adac (diff) |
broadcom/vc5: Add support for f32 render targets.
The TLB write code is getting ugly and needs a refactoring (that will
hopefully handle TLBU uniform coalescing as well).
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_program.c b/src/gallium/drivers/vc5/vc5_program.c index d5634c7a7d3..80865a25a4d 100644 --- a/src/gallium/drivers/vc5/vc5_program.c +++ b/src/gallium/drivers/vc5/vc5_program.c @@ -369,6 +369,10 @@ vc5_update_compiled_fs(struct vc5_context *vc5, uint8_t prim_mode) if (desc->swizzle[0] == PIPE_SWIZZLE_Z) key->swap_color_rb |= 1 << i; + if (desc->channel[0].type == UTIL_FORMAT_TYPE_FLOAT && + desc->channel[0].size == 32) { + key->f32_color_rb |= 1 << i; + } } if (key->is_points) { |