[Mesa-dev] [PATCH 3/5] ffvertex: Don't try to read output registers in fog calculation
Timothy Arceri
tarceri at itsqueeze.com
Mon May 7 00:31:44 UTC 2018
On 05/05/18 07:28, Kenneth Graunke wrote:
> On Thursday, April 26, 2018 2:28:41 PM PDT Ian Romanick wrote:
>> From: Ian Romanick <ian.d.romanick at intel.com>
>>
>> This code was clearly never tested. It's a good thing that no driver
>> ever tried to enable this path.
>>
>> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
>> ---
>> src/mesa/main/ffvertex_prog.c | 10 ++++++----
>> 1 file changed, 6 insertions(+), 4 deletions(-)
> That's not quite accurate. Gallium drivers advertise NV_fog_distance,
> but st_program calls _mesa_remove_output_reads(), which presumably
> lowers those away. It looks like none of the classic drivers are
> calling that, though, so they would be broken if they tried to enable
> this. Either your patch, or calling _mesa_remove_output_reads(),
> would probably solve the issue.
>
> At any rate, using a temporary seems reasonable.
Since this patch landed. Do you guys think we can now remove
_mesa_remove_output_reads() entirely?
More information about the mesa-dev
mailing list