OSDN Git Service

i965/vec4: add helpers for conversions to/from doubles
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 29 Jun 2016 11:07:35 +0000 (13:07 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
commitbfc1f0f017db6bd11a558237c9a4ebeacf73f5ba
treeda4c8bd52020321bfb961e9a8b42e201581c63aa
parentc722a8e61ebc72d7d21c2bed0f623218d739fdb7
i965/vec4: add helpers for conversions to/from doubles

Use these helpers to implement d2f and f2d. We will reuse these helpers when
we implement things like d2i or i2d as well.

v2:
- Rename the helpers (Matt)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp