Chris Forbes <chr...@ijw.co.nz> writes: > ARB_texture_storage_multisample allows texture parameters to be > queried for TEXTURE_2D_MULTISAMPLE and TEXTURE_2D_MULTISAMPLE_ARRAY > targets. > > Some parameters may also be set, with the following exceptions: > > - TEXTURE_BASE_LEVEL may not be set to a nonzero value; generates > INVALID_OPERATION > > - any state which appears in the `per-sampler` state table may not > be set; generates INVALID_OPERATION >
> @@ -348,6 +392,11 @@ set_tex_parameteri(struct gl_context *ctx, > case GL_TEXTURE_MAX_LEVEL: > if (texObj->MaxLevel == params[0]) > return GL_FALSE; > + > + if ((texObj->Target == GL_TEXTURE_2D_MULTISAMPLE || > + texObj->Target == GL_TEXTURE_2D_MULTISAMPLE_ARRAY) && params[0] > != 0) > + goto invalid_operation; I don't see anything banning MAX_LEVEL != 0 -- it's not sampler state, and it's not otherwise called out. On the other hand, there's no useful thing you could do with MAX_LEVEL != 0, since it's a single-level texture type. I don't have an opinion either way, really.
pgpdojtcqpxBG.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev