From: Eduardo Lima Mitev Date: Wed, 26 Nov 2014 15:44:18 +0000 (+0100) Subject: i965: Sets missing vertex shader constant values for HighInt format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa727c1dd9e92dfafcc1ed39a9c65478ae40ce39;p=mesa.git i965: Sets missing vertex shader constant values for HighInt format The range's min and max, and the precision value are not set correctly for the vertex shader constants. Fixes 1 dEQP test: dEQP-GLES3.functional.state_query.shader.precision_vertex_highp_int Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index e8ecbfe80d9..e20da0b8ef8 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -482,6 +482,12 @@ brw_initialize_context_constants(struct brw_context *brw) ctx->Const.Program[MESA_SHADER_FRAGMENT].HighInt = ctx->Const.Program[MESA_SHADER_FRAGMENT].LowInt; ctx->Const.Program[MESA_SHADER_FRAGMENT].MediumInt = ctx->Const.Program[MESA_SHADER_FRAGMENT].LowInt; + ctx->Const.Program[MESA_SHADER_VERTEX].LowInt.RangeMin = 31; + ctx->Const.Program[MESA_SHADER_VERTEX].LowInt.RangeMax = 30; + ctx->Const.Program[MESA_SHADER_VERTEX].LowInt.Precision = 0; + ctx->Const.Program[MESA_SHADER_VERTEX].HighInt = ctx->Const.Program[MESA_SHADER_VERTEX].LowInt; + ctx->Const.Program[MESA_SHADER_VERTEX].MediumInt = ctx->Const.Program[MESA_SHADER_VERTEX].LowInt; + if (brw->gen >= 7) { ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxAtomicCounters = MAX_ATOMIC_COUNTERS; ctx->Const.Program[MESA_SHADER_VERTEX].MaxAtomicCounters = MAX_ATOMIC_COUNTERS;