diff options
author | Roland Scheidegger <[email protected]> | 2015-05-13 22:16:44 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2015-05-13 22:57:50 +0200 |
commit | e6c66f4fb060cf2566d2b5e091b76a098566344d (patch) | |
tree | 4087f6c8921cb492d9e03a06343f06ae4e5f61c4 /src/gallium/auxiliary | |
parent | 2712f70d57a0df25db6371496eb567564a588e13 (diff) |
llvmpipe: enable ARB_texture_view
All the functionality was pretty much there, just not tested.
Trivially fix up the missing pieces (take target info from view not
resource), and add some missing bits for cubes.
Also add some minimal debug validation to detect uninitialized target values
in the view...
49 new piglits, 47 pass, 2 fail (both related to fake multisampling,
not texture_view itself). No other piglit changes.
v2: move sampler view validation to sampler view creation, update docs.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 5b220450bf3..4befb3a1c80 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -113,7 +113,7 @@ lp_sampler_static_texture_state(struct lp_static_texture_state *state, state->swizzle_b = view->swizzle_b; state->swizzle_a = view->swizzle_a; - state->target = texture->target; + state->target = view->target; state->pot_width = util_is_power_of_two(texture->width0); state->pot_height = util_is_power_of_two(texture->height0); state->pot_depth = util_is_power_of_two(texture->depth0); |