[Mesa-dev] [PATCH 03/16] st/nine: NineDevice9_Clear skip fastpath for bigger depth-buffers

Axel Davy axel.davy at ens.fr
Fri Apr 24 14:14:51 PDT 2015


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.


More information about the mesa-dev mailing list