summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstorage.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-07-14 14:25:19 -0600
committerBrian Paul <[email protected]>2016-07-15 14:24:34 -0600
commit0ac9f25032a2e1bca52552972da4b55276fc1ae6 (patch)
tree9148c7e375915da492c85176e50ae763e9b093da /src/mesa/main/texstorage.c
parente477d92c94d6415d2844f68766adf5339aebe7bf (diff)
mesa: add numLevels, numSamples to Driver.TestProxyTexImage()
So that the function can work properly with glTexStorage(), where we know how many mipmap levels there are. And so we can compute storage for MSAA textures. Also, remove the obsolete texture border parameter. A subsequent patch will update _mesa_test_proxy_teximage() to use these new parameters. Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/texstorage.c')
-rw-r--r--src/mesa/main/texstorage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 72ed8696fde..ab8324f176e 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -396,8 +396,8 @@ _mesa_texture_storage(struct gl_context *ctx, GLuint dims,
dimensionsOK = _mesa_legal_texture_dimensions(ctx, target, 0,
width, height, depth, 0);
- sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, 0, texFormat,
- width, height, depth, 0);
+ sizeOK = ctx->Driver.TestProxyTexImage(ctx, target, levels, 0, texFormat,
+ 1, width, height, depth);
if (_mesa_is_proxy_texture(target)) {
if (dimensionsOK && sizeOK) {