mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
panfrost: use pipe_shader_from_nir
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26272>
This commit is contained in:
parent
e84302f763
commit
2e56be8e34
1 changed files with 2 additions and 2 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pan_afbc_cso.h"
|
#include "pan_afbc_cso.h"
|
||||||
|
#include "nir/pipe_nir.h"
|
||||||
#include "nir_builder.h"
|
#include "nir_builder.h"
|
||||||
#include "pan_context.h"
|
#include "pan_context.h"
|
||||||
#include "pan_resource.h"
|
#include "pan_resource.h"
|
||||||
|
|
@ -290,8 +291,7 @@ panfrost_afbc_get_shaders(struct panfrost_context *ctx,
|
||||||
nir_shader *nir = \
|
nir_shader *nir = \
|
||||||
panfrost_afbc_create_##name##_shader(screen, __VA_ARGS__); \
|
panfrost_afbc_create_##name##_shader(screen, __VA_ARGS__); \
|
||||||
nir->info.num_ubos = 1; \
|
nir->info.num_ubos = 1; \
|
||||||
struct pipe_compute_state cso = {PIPE_SHADER_IR_NIR, nir}; \
|
shader->name##_cso = pipe_shader_from_nir(pctx, nir); \
|
||||||
shader->name##_cso = pctx->create_compute_state(pctx, &cso); \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COMPILE_SHADER(size, key.bpp, key.align);
|
COMPILE_SHADER(size, key.bpp, key.align);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue