diff options
author | Kenneth Graunke <[email protected]> | 2016-09-08 23:48:51 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-05 19:20:42 -0700 |
commit | e51e055fcdf8107aafaba358fa65b00f963e1728 (patch) | |
tree | 2df63f27010bd6ba4dd9ea99610bd3d78ca6f8d8 /src/mesa/drivers/dri/i965/brw_fs_builder.h | |
parent | 74b02a744913ffaaf409feb0df30aaa92188e250 (diff) |
i965: Introduce downcast helpers for prog_data structures.
Similar to brw_context(...), intel_texture_object(...), and so on.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_builder.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_builder.h b/src/mesa/drivers/dri/i965/brw_fs_builder.h index bae151ca042..e8cbb9c595b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_builder.h +++ b/src/mesa/drivers/dri/i965/brw_fs_builder.h @@ -240,7 +240,7 @@ namespace brw { group() + dispatch_width() <= 16); if (shader->stage != MESA_SHADER_FRAGMENT) { return brw_imm_d(0xffffffff); - } else if (((brw_wm_prog_data *)shader->stage_prog_data)->uses_kill) { + } else if (brw_wm_prog_data(shader->stage_prog_data)->uses_kill) { return brw_flag_reg(0, 1); } else { return retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UD); |