diff options
author | Brian Paul <[email protected]> | 2018-02-06 21:55:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-02-07 18:38:04 -0700 |
commit | 6321b1bd4005fcd05b2f1e6d16a974dba97f9415 (patch) | |
tree | 2d88e3b8003a9f8cd460e2bf7d64c0875782d7d9 /src/gallium | |
parent | 15874338ff9ec4fe356c975351c1a0e7e82325fc (diff) |
gallium/util: replace uint with tgsi enum types
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_blit.c | 9 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_blit.h | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c index de39422e329..4c85ef2a8c3 100644 --- a/src/gallium/auxiliary/util/u_blit.c +++ b/src/gallium/auxiliary/util/u_blit.c @@ -187,7 +187,7 @@ set_fragment_shader(struct blit_state *ctx, } else if (!ctx->fs[pipe_tex][idx]) { - unsigned tgsi_tex = util_pipe_tex_to_tgsi_tex(pipe_tex, 0); + enum tgsi_texture_type tgsi_tex = util_pipe_tex_to_tgsi_tex(pipe_tex, 0); /* OpenGL does not allow blits from signed to unsigned integer * or vice versa. */ @@ -259,7 +259,7 @@ get_next_slot( struct blit_state *ctx ) */ static unsigned setup_vertex_data_tex(struct blit_state *ctx, - unsigned src_target, + enum pipe_texture_target src_target, unsigned src_face, float x0, float y0, float x1, float y1, float s0, float t0, float s1, float t1, @@ -380,7 +380,8 @@ util_blit_pixels(struct blit_state *ctx, struct pipe_surface *dst, int dstX0, int dstY0, int dstX1, int dstY1, - MAYBE_UNUSED float z, uint filter, + MAYBE_UNUSED float z, + enum pipe_tex_filter filter, uint writemask) { struct pipe_context *pipe = ctx->pipe; @@ -514,7 +515,7 @@ util_blit_pixels_tex(struct blit_state *ctx, struct pipe_surface *dst, int dstX0, int dstY0, int dstX1, int dstY1, - float z, uint filter, + float z, enum pipe_tex_filter filter, boolean src_xrbias) { boolean normalized = src_sampler_view->texture->target != PIPE_TEXTURE_RECT; diff --git a/src/gallium/auxiliary/util/u_blit.h b/src/gallium/auxiliary/util/u_blit.h index e2934d0983c..085ea635700 100644 --- a/src/gallium/auxiliary/util/u_blit.h +++ b/src/gallium/auxiliary/util/u_blit.h @@ -60,7 +60,7 @@ util_blit_pixels(struct blit_state *ctx, struct pipe_surface *dst, int dstX0, int dstY0, int dstX1, int dstY1, - float z, uint filter, + float z, enum pipe_tex_filter filter, uint writemask); extern void @@ -72,7 +72,7 @@ util_blit_pixels_tex(struct blit_state *ctx, struct pipe_surface *dst, int dstX0, int dstY0, int dstX1, int dstY1, - float z, uint filter, + float z, enum pipe_tex_filter filter, boolean src_xrbias); #ifdef __cplusplus |