diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-04-18 19:40:27 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-04-29 14:55:39 +0300 |
commit | 6e6f7c00fd860cc61e28e47286118e590f2a4563 (patch) | |
tree | 0428c9ac8e11ff8bf296513de94ce133e4bdac38 /lib/rendercopy_gen4.c | |
parent | 9f49df1ad3ba49d479aa9a1ff997d2236509163b (diff) |
lib/rendercopy: Add fp16 support for gen4+
Allow copying between fp16 surfaces. We'll use the FLOAT
surface format since that's all the display supports currently.
Hopefully the hardware gives us a 1:1 copy, at least if
the input doesn't contain crazy infs/nans etc. We could
choose UNORM instead but that won't work for eventually
exposing fp16+ccs. Although we do need to replace the
simple bpp value with a more specific format type to get
10bpc+ccs working as well.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/rendercopy_gen4.c')
-rw-r--r-- | lib/rendercopy_gen4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rendercopy_gen4.c b/lib/rendercopy_gen4.c index 9111508f..42de77f9 100644 --- a/lib/rendercopy_gen4.c +++ b/lib/rendercopy_gen4.c @@ -160,6 +160,7 @@ gen4_bind_buf(struct intel_batchbuffer *batch, case 8: ss->ss0.surface_format = SURFACEFORMAT_R8_UNORM; break; case 16: ss->ss0.surface_format = SURFACEFORMAT_R8G8_UNORM; break; case 32: ss->ss0.surface_format = SURFACEFORMAT_B8G8R8A8_UNORM; break; + case 64: ss->ss0.surface_format = SURFACEFORMAT_R16G16B16A16_FLOAT; break; default: igt_assert(0); } |