diff options
author | Eric Anholt <[email protected]> | 2017-10-24 12:29:39 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-30 13:31:16 -0700 |
commit | eecdbaa98578110523b04b8a4f160b8df2dea82f (patch) | |
tree | c4f4d57912314d50450b72a1b16ff643b0994609 /src/broadcom/compiler/v3d_compiler.h | |
parent | e798455330d15d7c99b5ebe36f7de0793aae39b5 (diff) |
broadcom/vc5: Add PIPE_TEX_WRAP_CLAMP support for linear-filtered textures.
I already had the texture's wrapping set up to use different behavior for
nearest or linear, so we just needed to saturate the coordinates in linear
mode to get the "proper" blend between the edge and border values.
Diffstat (limited to 'src/broadcom/compiler/v3d_compiler.h')
-rw-r--r-- | src/broadcom/compiler/v3d_compiler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h index 021c88f7b93..56a9d143e32 100644 --- a/src/broadcom/compiler/v3d_compiler.h +++ b/src/broadcom/compiler/v3d_compiler.h @@ -294,8 +294,9 @@ struct v3d_key { struct { unsigned compare_mode:1; unsigned compare_func:3; - unsigned wrap_s:3; - unsigned wrap_t:3; + bool clamp_s:1; + bool clamp_t:1; + bool clamp_r:1; }; struct { uint16_t msaa_width, msaa_height; |