mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
asahi: fix shader-db with fbfetch
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35189>
This commit is contained in:
parent
25d24b5a59
commit
a52c5fbc35
1 changed files with 5 additions and 0 deletions
|
|
@ -1990,6 +1990,11 @@ agx_create_shader_state(struct pipe_context *pctx,
|
|||
|
||||
case PIPE_SHADER_FRAGMENT:
|
||||
key.fs.nr_samples = 1;
|
||||
|
||||
/* For fbfetch */
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(key.fs.rt_formats); ++i) {
|
||||
key.fs.rt_formats[i] = PIPE_FORMAT_R8G8B8A8_UNORM;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
unreachable("Unknown shader stage in shader-db precompile");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue