diff options
author | Keith Whitwell <[email protected]> | 2009-08-21 17:13:11 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-08-21 18:14:19 +0100 |
commit | 4fc7d0345a18042a79686940fb7cc4e698cc9192 (patch) | |
tree | b039e7d5e5e673a8677926050df0648c17bfd0fc /src/gallium/drivers/softpipe/sp_texture.h | |
parent | b1cc196e6d18494348c2974aad5d85d1b8281ce0 (diff) |
softpipe: rework texture sampling code
Split into component pieces, stitch together at runtime using function
pointers. Make it possible to utilize the existing fastpaths as image-level
filters for generic mip-filtering routines.
Remove special case for rectangle filtering, as it can now be handled by
the 2d path.
As most of the mesa demo texturing was already covered by fast paths, its
harder to find examples of speedups, but tunnel gets a boost as mip-nearest
filtering is now able to access the img_2d_linear_wrap_POT functions
for sampling within a mipmap level.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_texture.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_texture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.h b/src/gallium/drivers/softpipe/sp_texture.h index 42df722a2d1..4dd0c1239e2 100644 --- a/src/gallium/drivers/softpipe/sp_texture.h +++ b/src/gallium/drivers/softpipe/sp_texture.h @@ -48,6 +48,10 @@ struct softpipe_texture */ struct pipe_buffer *buffer; + /* True if texture images are power-of-two in all dimensions: + */ + boolean pot; + unsigned timestamp; }; |