From 1fdc75fde418a231a91ef0e68ea92d54bf594ea1 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 12 Nov 2014 11:03:44 -0800 Subject: [PATCH] i965/fs: Remove unused apply_stride(). Reviewed-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 ---------- src/mesa/drivers/dri/i965/brw_fs.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index ef6e6e7467a..4804b7dff71 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -607,16 +607,6 @@ fs_reg::equals(const fs_reg &r) const stride == r.stride); } -fs_reg & -fs_reg::apply_stride(unsigned stride) -{ - assert((this->stride * stride) <= 4 && - (is_power_of_two(stride) || stride == 0) && - file != HW_REG && file != IMM); - this->stride *= stride; - return *this; -} - fs_reg & fs_reg::set_smear(unsigned subreg) { diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index f778c26939f..c4d8323f768 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -86,7 +86,6 @@ public: bool is_valid_3src() const; bool is_contiguous() const; - fs_reg &apply_stride(unsigned stride); /** Smear a channel of the reg to all channels. */ fs_reg &set_smear(unsigned subreg); -- 2.30.2