[Mesa-dev] [PATCH 0/5] MESA_shader_integer_mix

Matt Turner mattst88 at gmail.com
Fri Sep 6 17:57:36 PDT 2013


This series implements a small extension that adds int, uint, and bool
as allowable types to the mix() built-in function. We hope to make it
an EXT extension soon.

I found myself wanting a per-component conditional-select operation
when implementing the ldexp() and frexp() built-ins, and this
extension came as a natural result.

The third patch switches the _mix_sel implementation from conditional
assignment to conditional select. I've verified that there are no
instruction count differences in shader-db.

Given Gallium support for ir_triop_cond_sel this extension can be
enabled everywhere with GLSL 1.30 or GLSL ES 3.0. (Please add Gallium
support, see patch 1)

The series is based on top of Ken's builtins-v3.2 branch.

Thanks,
Matt


More information about the mesa-dev mailing list