<div dir="ltr">On 31 October 2013 18:36, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This clamps GL_MAX_SAMPLES to the given value. If negative, then no<br>
clamping occurs.<br>
<br>
This patch adds the option, but no driver respects it yet.<br></blockquote><div><br></div><div>Do you plan to implement support for this option in all drivers or just i965?  If you're just implementing it for i965, maybe it should go in src/mesa/drivers/dri/i965/intel_screen.c.<br>
<br></div><div>Other than that, the patch is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
CC: Eric Anholt <<a href="mailto:eric@anholt.org">eric@anholt.org</a>><br>
Signed-off-by: Chad Versace <<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>><br>
---<br>
<br>
This little series lives on my driconf-clamp-max-samples branch.<br>
<br>
<br>
 src/mesa/drivers/dri/common/xmlpool/t_options.h | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h b/src/mesa/drivers/dri/common/xmlpool/t_options.h<br>
index 3bf804a..2a02406 100644<br>
--- a/src/mesa/drivers/dri/common/xmlpool/t_options.h<br>
+++ b/src/mesa/drivers/dri/common/xmlpool/t_options.h<br>
@@ -215,7 +215,10 @@ DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa_color,int,def, # min ":" # max ) \<br>
         DRI_CONF_DESC(en,gettext("Morphological anti-aliasing based on Jimenez\\\' MLAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL apps")) \<br>
 DRI_CONF_OPT_END<br>
<br>
-<br>
+#define DRI_CONF_CLAMP_MAX_SAMPLES() \<br>
+DRI_CONF_OPT_BEGIN(clamp_max_samples, int, -1) \<br>
+        DRI_CONF_DESC(en,gettext("Clamp the value of GL_MAX_SAMPLES to the given integer. If negative, then do not clamp.")) \<br>
+DRI_CONF_OPT_END<br>
<br>
 /**<br>
  * \brief Performance-related options<br>
<span class=""><font color="#888888">--<br>
1.8.3.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>