[Mesa-dev] [PATCH 0/3] i965: Let driconf clamp_max_samples affect context version

Chad Versace chad.versace at linux.intel.com
Wed Nov 20 14:10:45 PST 2013

This series makes clamp_max_samples actually useful enabling/disabling MSAA on
Chromium. Without this series, clamp_max_samples=0 makes WebGL context creation
fail on Chromium.

Eric complained that brw_clamp_max_samples() too closely resembled
intel_quantize_num_samples(), so this series removes the conceptual duplication
between the two functions.  It moves the list of supported MSAA modes to
a shared function.

Chad Versace (3):
  i965: Terminate brw_supported_msaa_modes() list with -1, not 0
  i965: Share code between intel_quantize_num_samples and
  i965: Let driconf clamp_max_samples affect context version

 src/mesa/drivers/dri/i965/brw_context.c  | 77 +++++++++-----------------------
 src/mesa/drivers/dri/i965/intel_fbo.c    | 28 +++++-------
 src/mesa/drivers/dri/i965/intel_screen.c | 20 +++++++++
 src/mesa/drivers/dri/i965/intel_screen.h |  3 ++
 4 files changed, 53 insertions(+), 75 deletions(-)


More information about the mesa-dev mailing list