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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user