diff options
author | Wladimir J. van der Laan <[email protected]> | 2017-07-28 16:05:16 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-08-06 20:45:24 +0200 |
commit | 948bb2caba24b08dd6a5cfae39778f48205c6b1b (patch) | |
tree | 2f38ec6a335b307fec3d6ee8ad4023f234f204b7 /src/gallium/drivers | |
parent | 39056b0e2ac10342d8a3a6000f12a510f5dbd773 (diff) |
etnaviv: Add support for R8_UNORM textures
R8_UNORM textures can be emulated by means of L8 and a swizzle.
Signed-off-by: Wladimir J. van der Laan <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c index 69e07bce111..a2e215b439c 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_format.c +++ b/src/gallium/drivers/etnaviv/etnaviv_format.c @@ -90,7 +90,7 @@ struct etna_format { static struct etna_format formats[PIPE_FORMAT_COUNT] = { /* 8-bit */ - V_(R8_UNORM, UNSIGNED_BYTE, NONE), + VT(R8_UNORM, UNSIGNED_BYTE, L8, SWIZ(X, 0, 0, 1), NONE), V_(R8_SNORM, BYTE, NONE), V_(R8_UINT, UNSIGNED_BYTE, NONE), V_(R8_SINT, BYTE, NONE), |