diff options
author | Nicolai Hähnle <[email protected]> | 2017-07-04 10:34:02 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-07-31 14:55:28 +0200 |
commit | f1da97ef7a8408155d2627ef55092c2aa78c81ac (patch) | |
tree | ceeadbdee17975eac7c6f5317f06bcf15a9bd81e /src/compiler/nir/nir_gather_info.c | |
parent | 5011923e09ec835dbd275a5137fde532ec600368 (diff) |
nir: add load_frag_coord system value intrinsic
Some drivers prefer to treat gl_FragCoord as a system value rather than
a fragment shader input, see Const.GLSLFragCoordIsSysVal.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_gather_info.c')
-rw-r--r-- | src/compiler/nir/nir_gather_info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 24ac74ee79d..ac87bec46c0 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -227,6 +227,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader) } case nir_intrinsic_load_draw_id: + case nir_intrinsic_load_frag_coord: case nir_intrinsic_load_front_face: case nir_intrinsic_load_vertex_id: case nir_intrinsic_load_vertex_id_zero_base: |