mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
i915: Set correct values for range/precision of fragment shader types
This commit is contained in:
parent
3d028024e5
commit
790ff232e2
1 changed files with 14 additions and 0 deletions
|
|
@ -168,6 +168,20 @@ i915CreateContext(int api,
|
|||
MIN2(ctx->Const.FragmentProgram.MaxNativeParameters,
|
||||
ctx->Const.FragmentProgram.MaxEnvParams);
|
||||
|
||||
/* i915 stores all values in single-precision floats. Values aren't set
|
||||
* for other program targets because software is used for those targets.
|
||||
*/
|
||||
ctx->FragmentProgram.MediumFloat.RangeMin = 127;
|
||||
ctx->FragmentProgram.MediumFloat.RangeMax = 127;
|
||||
ctx->FragmentProgram.MediumFloat.Precision = 23;
|
||||
ctx->FragmentProgram.LowFloat = ctx->FragmentProgram.HighFloat =
|
||||
ctx->FragmentProgram.MediumFloat;
|
||||
ctx->FragmentProgram.MediumInt.RangeMin = 24;
|
||||
ctx->FragmentProgram.MediumInt.RangeMax = 24;
|
||||
ctx->FragmentProgram.MediumInt.Precision = 0;
|
||||
ctx->FragmentProgram.LowInt = ctx->FragmentProgram.HighInt =
|
||||
ctx->FragmentProgram.MediumInt;
|
||||
|
||||
ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
|
||||
|
||||
/* FINISHME: Are there other options that should be enabled for software
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue