gallium/draw: Replace the usage of ushort to uint16_t in files that can not found by tools
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
This commit is contained in:
@@ -554,7 +554,7 @@ gs_tri_adj(struct draw_geometry_shader *shader,
|
||||
|
||||
|
||||
#define FUNC gs_run_elts
|
||||
#define LOCAL_VARS const ushort *elts = input_prims->elts;
|
||||
#define LOCAL_VARS const uint16_t *elts = input_prims->elts;
|
||||
#define GET_ELT(idx) (elts[idx])
|
||||
#include "draw_gs_tmp.h"
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ prim_tri(struct draw_mesh_prim *asmblr,
|
||||
#include "draw_mesh_prim_tmp.h"
|
||||
|
||||
#define FUNC assembler_run_elts
|
||||
#define LOCAL_VARS const ushort *elts = input_prims->elts;
|
||||
#define LOCAL_VARS const uint16_t *elts = input_prims->elts;
|
||||
#define GET_ELT(idx) (elts[start + (idx)])
|
||||
#include "draw_mesh_prim_tmp.h"
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ draw_prim_assembler_prepare_outputs(struct draw_assembler *ia)
|
||||
#include "draw_prim_assembler_tmp.h"
|
||||
|
||||
#define FUNC assembler_run_elts
|
||||
#define LOCAL_VARS const ushort *elts = input_prims->elts;
|
||||
#define LOCAL_VARS const uint16_t *elts = input_prims->elts;
|
||||
#define GET_ELT(idx) (elts[start + (idx)])
|
||||
#include "draw_prim_assembler_tmp.h"
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ so_tri(struct pt_so_emit *so, int i0, int i1, int i2)
|
||||
|
||||
|
||||
#define FUNC so_run_elts
|
||||
#define LOCAL_VARS const ushort *elts = input_prims->elts;
|
||||
#define LOCAL_VARS const uint16_t *elts = input_prims->elts;
|
||||
#define GET_ELT(idx) (elts[start + (idx)])
|
||||
#include "draw_so_emit_tmp.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user