[Mesa-dev] [PATCH 8/8] i965: Drop pointless stage == MESA_SHADER_FRAGMENT checks.
Jason Ekstrand
jason at jlekstrand.net
Thu Sep 22 18:13:48 UTC 2016
Heh... Rb
On Sep 22, 2016 4:46 PM, "Kenneth Graunke" <kenneth at whitecape.org> wrote:
> There's an assert right above this.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp
> b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 1483f41..dc000d9 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -5434,10 +5434,6 @@ fs_visitor::setup_fs_payload_gen6()
> assert(stage == MESA_SHADER_FRAGMENT);
> brw_wm_prog_data *prog_data = (brw_wm_prog_data*) this->prog_data;
>
> - unsigned barycentric_interp_modes =
> - (stage == MESA_SHADER_FRAGMENT) ?
> - ((brw_wm_prog_data*) this->prog_data)->barycentric_interp_modes :
> 0;
> -
> assert(devinfo->gen >= 6);
>
> /* R0-1: masks, pixel X/Y coordinates. */
> @@ -5452,7 +5448,7 @@ fs_visitor::setup_fs_payload_gen6()
> * Mode" bits in WM_STATE.
> */
> for (int i = 0; i < BRW_BARYCENTRIC_MODE_COUNT; ++i) {
> - if (barycentric_interp_modes & (1 << i)) {
> + if (prog_data->barycentric_interp_modes & (1 << i)) {
> payload.barycentric_coord_reg[i] = payload.num_regs;
> payload.num_regs += 2;
> if (dispatch_width == 16) {
> --
> 2.10.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160922/b74e913a/attachment.html>
More information about the mesa-dev
mailing list