[Mesa-dev] [PATCH 07/19] i965/fs: Add a function to resize fs_inst's sources array.

Matt Turner mattst88 at gmail.com
Wed May 28 13:33:16 PDT 2014


On Wed, May 28, 2014 at 12:50 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> On 05/28/2014 04:47 AM, Matt Turner wrote:
>> ---
>>  src/mesa/drivers/dri/i965/brw_fs.cpp | 9 +++++++++
>>  src/mesa/drivers/dri/i965/brw_fs.h   | 2 ++
>>  2 files changed, 11 insertions(+)
>>
>> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
>> index f926d97..1f174d3 100644
>> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
>> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
>> @@ -111,6 +111,15 @@ fs_inst::fs_inst(const fs_inst &that)
>>        this->src[i] = that.src[i];
>>  }
>>
>> +void
>> +fs_inst::resize_sources(uint8_t num_sources)
>> +{
>> +   if (this->sources != num_sources) {
>> +      this->src = reralloc(this, this->src, fs_reg, num_sources);
>> +      this->sources = num_sources;
>> +   }
>> +}
>> +
>
> This looks proper to me but it does not seem to be used anywhere by this
> series?

Hm. Nope. It's used in a later series that implements SSA.


More information about the mesa-dev mailing list