ac/nir, radv, radeonsi: Switch to using ac_shader_args
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#define AC_SHADER_ABI_H
|
||||
|
||||
#include <llvm-c/Core.h>
|
||||
#include <assert.h>
|
||||
#include "ac_shader_args.h"
|
||||
|
||||
#include "compiler/shader_enums.h"
|
||||
@@ -49,47 +50,14 @@ enum ac_descriptor_type {
|
||||
* radv to share a compiler backend.
|
||||
*/
|
||||
struct ac_shader_abi {
|
||||
LLVMValueRef base_vertex;
|
||||
LLVMValueRef start_instance;
|
||||
LLVMValueRef draw_id;
|
||||
LLVMValueRef outputs[AC_LLVM_MAX_OUTPUTS * 4];
|
||||
|
||||
/* These input registers sometimes need to be fixed up. */
|
||||
LLVMValueRef vertex_id;
|
||||
LLVMValueRef instance_id;
|
||||
LLVMValueRef tcs_patch_id;
|
||||
LLVMValueRef tcs_rel_ids;
|
||||
LLVMValueRef tes_patch_id;
|
||||
LLVMValueRef gs_prim_id;
|
||||
LLVMValueRef gs_invocation_id;
|
||||
|
||||
/* PS */
|
||||
LLVMValueRef frag_pos[4];
|
||||
LLVMValueRef front_face;
|
||||
LLVMValueRef ancillary;
|
||||
LLVMValueRef sample_coverage;
|
||||
LLVMValueRef prim_mask;
|
||||
LLVMValueRef color0;
|
||||
LLVMValueRef color1;
|
||||
LLVMValueRef persp_centroid, linear_centroid;
|
||||
LLVMValueRef color0, color1;
|
||||
LLVMValueRef user_data;
|
||||
LLVMValueRef persp_sample;
|
||||
LLVMValueRef persp_center;
|
||||
LLVMValueRef persp_centroid;
|
||||
LLVMValueRef linear_sample;
|
||||
LLVMValueRef linear_center;
|
||||
LLVMValueRef linear_centroid;
|
||||
|
||||
/* CS */
|
||||
LLVMValueRef local_invocation_ids;
|
||||
LLVMValueRef num_work_groups;
|
||||
LLVMValueRef workgroup_ids[3];
|
||||
LLVMValueRef tg_size;
|
||||
|
||||
/* Vulkan only */
|
||||
LLVMValueRef push_constants;
|
||||
LLVMValueRef inline_push_consts[AC_MAX_INLINE_PUSH_CONSTS];
|
||||
unsigned num_inline_push_consts;
|
||||
unsigned base_inline_push_consts;
|
||||
LLVMValueRef view_index;
|
||||
|
||||
LLVMValueRef outputs[AC_LLVM_MAX_OUTPUTS * 4];
|
||||
|
||||
/* For VS and PS: pre-loaded shader inputs.
|
||||
*
|
||||
|
Reference in New Issue
Block a user