[Mesa-dev] [PATCH] i965/nir: add expicit casts to gl_state_index16

Andriy Khulap andriy.khulap at globallogic.com
Wed Feb 14 13:50:27 UTC 2018


Sorry for duplicate, but I've searched the mail thread for bug-id to check
if this one is already fixed. So missed it.

*Andriy Khulap | Software Engineer*
P +380.57.766.7667 M +380.67.607.2780 S a.khulap
www.globallogic.com
http://www.globallogic.com/email_disclaimer.txt

On Wed, Feb 14, 2018 at 3:40 PM, Tapani Pälli <tapani.palli at intel.com>
wrote:

> Same fix was sent by Jason earlier :) See:
>
> https://lists.freedesktop.org/archives/mesa-dev/2018-February/185446.html
>
>
> On 14.02.2018 15:37, Andriy Khulap wrote:
>
>> Fixes: db5f4221696a
>>         (i965: fix tessellation regressions with gl_state_index16)
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105088
>> Signed-off-by: Andriy Khulap <andriy.khulap at globallogic.com>
>> Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias at globallogic.com>
>> ---
>>   src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
>> b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
>> index 10a4ff40e5..69da83ad36 100644
>> --- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
>> +++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
>> @@ -254,7 +254,8 @@ brw_nir_lower_patch_vertices_in_to_uniform(nir_shader
>> *nir)
>>         gl_state_index16 tokens[STATE_LENGTH] = {
>>            STATE_INTERNAL,
>>            nir->info.stage == MESA_SHADER_TESS_CTRL ?
>> -            STATE_TCS_PATCH_VERTICES_IN : STATE_TES_PATCH_VERTICES_IN,
>> +            (gl_state_index16)STATE_TCS_PATCH_VERTICES_IN :
>> +            (gl_state_index16)STATE_TES_PATCH_VERTICES_IN,
>>         };
>>         var->num_state_slots = 1;
>>         var->state_slots =
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180214/f9799934/attachment.html>


More information about the mesa-dev mailing list