Le 24/04/2015 23:10, Ilia Mirkin a écrit :
What if the depth buffer is smaller than the color RT? I'd assume that
the fb would be reduced in that case as well... or does
This->state.fb.width/height only represent the min of the color RT's
sizes?


It is forbidden by the spec to have depth buffer smaller than RT,
or having several RT of different sizes.

Only cases allowed are:
. D3DFMT_NULL RT + depth buffer - > size of the depth buffer
. 1 RT + depth buffer -> size of the RT. depth buffer must be >=
. more than 1 RT + depth buffer -> the other RTs must match the size of the first one. depth buffer must be >=

If depth buffer is smaller, we don't bind it. Same for RTs that don't match main RT size.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to