mesa: remove gl_shader_compiler_options::EmitNoNoise
authorMarek Olšák <marek.olsak@amd.com>
Sun, 16 Oct 2016 22:54:35 +0000 (00:54 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 19 Oct 2016 17:26:30 +0000 (19:26 +0200)
it's always true

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i965/brw_compiler.c
src/mesa/main/mtypes.h
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_extensions.c

index 83aaf9ea5a61de25afc1195b8c0f0a8a093471f6..6c4882378f454752555d0bc6375223208f89c8ce 100644 (file)
@@ -260,7 +260,6 @@ i915CreateContext(int api,
    struct gl_shader_compiler_options *const fs_options =
       & ctx->Const.ShaderCompilerOptions[MESA_SHADER_FRAGMENT];
    fs_options->MaxIfDepth = 0;
-   fs_options->EmitNoNoise = true;
    fs_options->EmitNoPow = true;
    fs_options->EmitNoMainReturn = true;
    fs_options->EmitNoIndirectInput = true;
index 86b1eaa4b2e5235a03f324f16989708d20069535..18145beb23aea0f78a8f94134ecb72558dcb954a 100644 (file)
@@ -123,7 +123,6 @@ brw_compiler_create(void *mem_ctx, const struct gen_device_info *devinfo)
       compiler->glsl_compiler_options[i].MaxIfDepth =
          devinfo->gen < 6 ? 16 : UINT_MAX;
 
-      compiler->glsl_compiler_options[i].EmitNoNoise = true;
       compiler->glsl_compiler_options[i].EmitNoMainReturn = true;
       compiler->glsl_compiler_options[i].EmitNoIndirectInput = true;
       compiler->glsl_compiler_options[i].EmitNoIndirectUniform = false;
index ff202260812a91f98249cd9bc49b150ff455b601..23a864bf3042adc5951f5d3281e374116dfd7aa7 100644 (file)
@@ -2999,7 +2999,6 @@ struct gl_shader_compiler_options
    GLboolean EmitNoFunctions;
    GLboolean EmitNoCont;                  /**< Emit CONT opcode? */
    GLboolean EmitNoMainReturn;            /**< Emit CONT/RET opcodes? */
-   GLboolean EmitNoNoise;                 /**< Emit NOISE opcodes? */
    GLboolean EmitNoPow;                   /**< Emit POW opcodes? */
    GLboolean EmitNoSat;                   /**< Emit SAT opcodes? */
    GLboolean LowerCombinedClipCullDistance; /** Lower gl_ClipDistance and
index debc18d95c9a6ea8b9f595df5d9e12296ade62e3..bd65df2b22e7c59a39e30bdced712056cba7b85b 100644 (file)
@@ -2997,8 +2997,7 @@ _mesa_ir_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
 
         progress = lower_if_to_cond_assign(ir, options->MaxIfDepth) || progress;
 
-        if (options->EmitNoNoise)
-           progress = lower_noise(ir) || progress;
+         progress = lower_noise(ir) || progress;
 
         /* If there are forms of indirect addressing that the driver
          * cannot handle, perform the lowering pass.
index 6ed00abf653380345e3aec7d52665c31bb445f01..12582c5054a2e8e58648eb4603b0390ffb3aeb0c 100644 (file)
@@ -263,8 +263,6 @@ void st_init_limits(struct pipe_screen *screen,
          pc->MediumInt = pc->HighInt = pc->LowInt;
       }
 
-      options->EmitNoNoise = TRUE;
-
       /* TODO: make these more fine-grained if anyone needs it */
       options->MaxIfDepth =
          screen->get_shader_param(screen, sh,