diff options
author | Ilia Mirkin <[email protected]> | 2018-05-28 11:07:08 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2018-05-30 02:06:28 -0400 |
commit | 30918b77ac82ba1da7764c0375233656e0ebf9f9 (patch) | |
tree | 9b7cf607e0d50d8abe2cfc305d9c818943de8731 /src/gallium/drivers/nouveau | |
parent | 858ac8942d07d4c2d3e1cd1ac18381fa2e1de32c (diff) |
nv30: ensure that displayable formats are marked accordingly
Fixes: f7604d8af52 ("st/dri: only expose config formats that are display targets")
Cc: "18.1" <[email protected]>
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_format.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_format.c b/src/gallium/drivers/nouveau/nv30/nv30_format.c index 8d9516b863f..b877c75161f 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_format.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_format.c @@ -50,10 +50,12 @@ #define S___ PIPE_BIND_SAMPLER_VIEW #define _R__ PIPE_BIND_RENDER_TARGET #define _B__ PIPE_BIND_RENDER_TARGET | PIPE_BIND_BLENDABLE +#define _D__ PIPE_BIND_SCANOUT | PIPE_BIND_DISPLAY_TARGET | _B__ #define _Z__ PIPE_BIND_DEPTH_STENCIL #define __V_ PIPE_BIND_VERTEX_BUFFER #define SR__ (S___ | _R__) #define SB__ (S___ | _B__) +#define SD__ (S___ | _D__) #define SZ__ (S___ | _Z__) #define S_V_ (S___ | __V_) #define SRV_ (SR__ | __V_) @@ -73,14 +75,14 @@ nv30_format_info_table[PIPE_FORMAT_COUNT] = { _(A8_SNORM , S___), _(R8_UNORM , S_V_), _(R8_SNORM , S___), - _(B5G5R5X1_UNORM , SB__), + _(B5G5R5X1_UNORM , SD__), _(B5G5R5A1_UNORM , S___), _(B4G4R4X4_UNORM , S___), _(B4G4R4A4_UNORM , S___), - _(B5G6R5_UNORM , SB__), - _(BGRX8888_UNORM , SB__), + _(B5G6R5_UNORM , SD__), + _(BGRX8888_UNORM , SD__), _(BGRX8888_SRGB , S___), - _(BGRA8888_UNORM , SB__), + _(BGRA8888_UNORM , SD__), _(BGRA8888_SRGB , S___), _(R8G8B8A8_UNORM , __V_), _(RGBA8888_SNORM , S___), |