mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
gallivm: use enum types instead of unsigned in lp_bld_sample.[ch]
Signed-off-by: Brian Paul <brianp@vmware.com> Acked-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17064>
This commit is contained in:
parent
86c9f3f034
commit
a7911faa95
2 changed files with 8 additions and 8 deletions
|
|
@ -61,9 +61,9 @@
|
|||
* XXX maybe move this into gallium util code.
|
||||
*/
|
||||
boolean
|
||||
lp_sampler_wrap_mode_uses_border_color(unsigned mode,
|
||||
unsigned min_img_filter,
|
||||
unsigned mag_img_filter)
|
||||
lp_sampler_wrap_mode_uses_border_color(enum pipe_tex_wrap mode,
|
||||
enum pipe_tex_filter min_img_filter,
|
||||
enum pipe_tex_filter mag_img_filter)
|
||||
{
|
||||
switch (mode) {
|
||||
case PIPE_TEX_WRAP_REPEAT:
|
||||
|
|
@ -837,7 +837,7 @@ lp_build_lod_selector(struct lp_build_sample_context *bld,
|
|||
const struct lp_derivatives *derivs,
|
||||
LLVMValueRef lod_bias, /* optional */
|
||||
LLVMValueRef explicit_lod, /* optional */
|
||||
unsigned mip_filter,
|
||||
enum pipe_tex_mipfilter mip_filter,
|
||||
LLVMValueRef max_aniso,
|
||||
LLVMValueRef *out_lod,
|
||||
LLVMValueRef *out_lod_ipart,
|
||||
|
|
|
|||
|
|
@ -559,9 +559,9 @@ has_layer_coord(enum pipe_texture_target tex)
|
|||
|
||||
|
||||
boolean
|
||||
lp_sampler_wrap_mode_uses_border_color(unsigned mode,
|
||||
unsigned min_img_filter,
|
||||
unsigned mag_img_filter);
|
||||
lp_sampler_wrap_mode_uses_border_color(enum pipe_tex_wrap mode,
|
||||
enum pipe_tex_filter min_img_filter,
|
||||
enum pipe_tex_filter mag_img_filter);
|
||||
|
||||
/**
|
||||
* Derive the sampler static state.
|
||||
|
|
@ -591,7 +591,7 @@ lp_build_lod_selector(struct lp_build_sample_context *bld,
|
|||
const struct lp_derivatives *derivs,
|
||||
LLVMValueRef lod_bias, /* optional */
|
||||
LLVMValueRef explicit_lod, /* optional */
|
||||
unsigned mip_filter,
|
||||
enum pipe_tex_mipfilter mip_filter,
|
||||
LLVMValueRef max_aniso,
|
||||
LLVMValueRef *out_lod,
|
||||
LLVMValueRef *out_lod_ipart,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue