summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vdpau/surface.c
diff options
context:
space:
mode:
authorKrzesimir Nowak <[email protected]>2015-09-10 14:15:56 +0200
committerBrian Paul <[email protected]>2015-09-10 09:45:14 -0600
commitac3637dda04fe1315f19099bd142e4f8f6754b1d (patch)
treefe8762745c2eecea52b3477b4a585e75096843c5 /src/gallium/state_trackers/vdpau/surface.c
parent380a3c08049e5a3b0b1a891e3288b001c535d62f (diff)
softpipe: Split 3D to 2D coords conversion into separate function
This is to avoid tying the conversion to the sampling - textureQueryLod will need to do the conversion too, but it does not do any sampling. So instead of a "get_samples" vfunc, there is just a bool saying whether the conversion is needed or not. This solution keeps a nice property of not adding any overhead for the common case (2D textures). v2: - replaced the "convert_coords" vfunc with a "need_cube_convert" boolean to avoid overhead of copying arrays in common case - removed an unused typedef - splitted too long lines in convert_cube - const fixes in convert_cube Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/surface.c')
0 files changed, 0 insertions, 0 deletions