summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen7.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-18 19:40:27 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-04-29 14:55:39 +0300
commit6e6f7c00fd860cc61e28e47286118e590f2a4563 (patch)
tree0428c9ac8e11ff8bf296513de94ce133e4bdac38 /lib/rendercopy_gen7.c
parent9f49df1ad3ba49d479aa9a1ff997d2236509163b (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_gen7.c')
-rw-r--r--lib/rendercopy_gen7.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rendercopy_gen7.c b/lib/rendercopy_gen7.c
index 0a5d4a15..94946842 100644
--- a/lib/rendercopy_gen7.c
+++ b/lib/rendercopy_gen7.c
@@ -73,6 +73,7 @@ gen7_bind_buf(struct intel_batchbuffer *batch,
case 8: format = SURFACEFORMAT_R8_UNORM; break;
case 16: format = SURFACEFORMAT_R8G8_UNORM; break;
case 32: format = SURFACEFORMAT_B8G8R8A8_UNORM; break;
+ case 64: format = SURFACEFORMAT_R16G16B16A16_FLOAT; break;
default: igt_assert(0);
}