mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 03:50:35 +01:00
iris: Lie about indirects
fixes interpolateAt tests
This commit is contained in:
parent
b9ccb00e2c
commit
beb2d5e065
1 changed files with 5 additions and 4 deletions
|
|
@ -324,13 +324,14 @@ iris_get_shader_param(struct pipe_screen *pscreen,
|
|||
case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
|
||||
return 0;
|
||||
case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
|
||||
return !compiler->glsl_compiler_options[stage].EmitNoIndirectInput;
|
||||
case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
|
||||
return !compiler->glsl_compiler_options[stage].EmitNoIndirectOutput;
|
||||
case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
|
||||
return !compiler->glsl_compiler_options[stage].EmitNoIndirectTemp;
|
||||
case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
|
||||
return 1;
|
||||
/* Lie about these to avoid st/mesa's GLSL IR lowering of indirects,
|
||||
* which we don't want. Our compiler backend will check brw_compiler's
|
||||
* options and call nir_lower_indirect_derefs appropriately anyway.
|
||||
*/
|
||||
return true;
|
||||
case PIPE_SHADER_CAP_SUBROUTINES:
|
||||
return 0;
|
||||
case PIPE_SHADER_CAP_INTEGERS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue