diff options
author | Kenneth Graunke <[email protected]> | 2014-03-05 21:02:06 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-03-07 22:45:17 -0800 |
commit | ec23d5197e4573bc0b9b3c719251d08f9f21714f (patch) | |
tree | 82ec7486837ebf7a02bf492f0943ad3c1c53988b /src/mesa/SConscript | |
parent | 15b2f69b9c7d573bc978241da50549be4d3f2aca (diff) |
meta: Support GenerateMipmaps on 2DArray textures.
This is largely a matter of looping over the number of slices/layers,
and not minifying depth (presumably that code exists for the unfinished
3D texture support).
Normally, I would have made the loop over array slices the outermost
loop. I suspect that would make it trickier to support 3D textures
someday, though, so I didn't. The advantage is that we would only have
one BufferData call per slice, rather than one per miplevel and slice.
However, a GenerateMipmaps microbenchmark indicates that either way is
basically just as fast. So I'm not sure it's worth bothering.
Improves performance in a GenerateMipmaps microbenchmark by nearly 5x.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/SConscript')
0 files changed, 0 insertions, 0 deletions