[Mesa-dev] [PATCH 1/4] st/mesa: determine Const.MaxSamples in init_extensions

2011-07-28 Thread Christoph Bumiller
v2: Check for non-pow2 sample counts as well. --- src/mesa/state_tracker/st_extensions.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index b5f6d35..8e90093 100644 --- a/src/mesa

Re: [Mesa-dev] [PATCH 1/4] st/mesa: determine Const.MaxSamples in init_extensions

2011-07-25 Thread Roland Scheidegger
> This only checks power of 2 sample counts for now, but maybe we would > like to probe the values in between too ... Looks good to me. I don't think anyone ever supported odd sample counts (and no quincunx doesn't count...) though pre-r600 radeons supported 2,4,6. In any case if someone wants t

[Mesa-dev] [PATCH 1/4] st/mesa: determine Const.MaxSamples in init_extensions

2011-07-25 Thread Christoph Bumiller
This only checks power of 2 sample counts for now, but maybe we would like to probe the values in between too ... nv50 for example can store 12 "coverage samples" in a depth surface, but they have to be used in a hardware specific way together with multisampled colour surfaces (which are always po