* [PATCH] Add RGBA64 texture cpp for vc4 driver.
@ 2018-11-01 4:42 Nick Kreeger
2018-11-01 20:10 ` Eric Anholt
0 siblings, 1 reply; 2+ messages in thread
From: Nick Kreeger @ 2018-11-01 4:42 UTC (permalink / raw)
To: dri-devel; +Cc: Nick Kreeger
This patch is needed to help implement half-float texturing and
rendering for the vc4 driver in mesa. This small patch introduces the
cpp value for the RGBA64 texture. A future patch will include updates to
vc4_render_cl.c to handle HDR color stores.
---
drivers/gpu/drm/vc4/vc4_validate.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vc4/vc4_validate.c b/drivers/gpu/drm/vc4/vc4_validate.c
index 2db485abb186..29a4a21b5864 100644
--- a/drivers/gpu/drm/vc4/vc4_validate.c
+++ b/drivers/gpu/drm/vc4/vc4_validate.c
@@ -646,6 +646,9 @@ reloc_tex(struct vc4_exec_info *exec,
case VC4_TEXTURE_TYPE_S8:
cpp = 1;
break;
+ case VC4_TEXTURE_TYPE_RGBA64:
+ cpp = 8;
+ break;
case VC4_TEXTURE_TYPE_ETC1:
/* ETC1 is arranged as 64-bit blocks, where each block is 4x4
* pixels.
@@ -657,7 +660,6 @@ reloc_tex(struct vc4_exec_info *exec,
case VC4_TEXTURE_TYPE_BW1:
case VC4_TEXTURE_TYPE_A4:
case VC4_TEXTURE_TYPE_A1:
- case VC4_TEXTURE_TYPE_RGBA64:
case VC4_TEXTURE_TYPE_YUV422R:
default:
DRM_DEBUG("Texture format %d unsupported\n", type);
--
2.17.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add RGBA64 texture cpp for vc4 driver.
2018-11-01 4:42 [PATCH] Add RGBA64 texture cpp for vc4 driver Nick Kreeger
@ 2018-11-01 20:10 ` Eric Anholt
0 siblings, 0 replies; 2+ messages in thread
From: Eric Anholt @ 2018-11-01 20:10 UTC (permalink / raw)
To: dri-devel; +Cc: Nick Kreeger
[-- Attachment #1.1: Type: text/plain, Size: 641 bytes --]
Nick Kreeger <nick.kreeger@gmail.com> writes:
> This patch is needed to help implement half-float texturing and
> rendering for the vc4 driver in mesa. This small patch introduces the
> cpp value for the RGBA64 texture. A future patch will include updates to
> vc4_render_cl.c to handle HDR color stores.
We'll need a GET_PARAM ioctl param to say "we support RGBA64 textures"
and use that from vc4_screen.c's format checking, otherwise new Mesa on
old kernels will try to expose RGBA64 textures and fail at rendering
time. If we're introducing a GET_PARAM, we probably want to just do
half float rendering and texturing at the same time.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-01 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 4:42 [PATCH] Add RGBA64 texture cpp for vc4 driver Nick Kreeger
2018-11-01 20:10 ` Eric Anholt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.