mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
gallium/auxiliary/vl: NIR compute shaders
Remove drawn area check and instead adjust grid layout so that this check is not needed. Change crop_x/crop_y from int to float to avoid converting it in shaders, also all shaders now supports cropping. Acked-by: Thong Thai <thong.thai@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25562>
This commit is contained in:
parent
848811f98a
commit
df9a95a813
4 changed files with 541 additions and 780 deletions
|
|
@ -567,7 +567,7 @@ libgalliumvl = static_library(
|
|||
cpp_args : [cpp_msvc_compat_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_gallium, inc_include, inc_src],
|
||||
dependencies : idep_mesautil,
|
||||
dependencies : [idep_nir, idep_mesautil],
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -818,7 +818,7 @@ vl_compositor_init_state(struct vl_compositor_state *s, struct pipe_context *pip
|
|||
pipe->screen,
|
||||
PIPE_BIND_CONSTANT_BUFFER,
|
||||
PIPE_USAGE_DEFAULT,
|
||||
sizeof(csc_matrix) + 12*sizeof(float) + 10*sizeof(int)
|
||||
sizeof(csc_matrix) + 16*sizeof(float) + 2*sizeof(int)
|
||||
);
|
||||
|
||||
if (!s->shader_params)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -32,13 +32,6 @@
|
|||
|
||||
#include "vl_compositor.h"
|
||||
|
||||
/**
|
||||
* create compute shader
|
||||
*/
|
||||
void *
|
||||
vl_compositor_cs_create_shader(struct vl_compositor *c,
|
||||
const char *compute_shader_text);
|
||||
|
||||
/**
|
||||
* render the layers to the frontbuffer with compute shader
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue