From: Nikolay Sivov nsivov@codeweavers.com
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/d3d10/effect.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index e1a0231c6c7..a4539a71661 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -341,6 +341,15 @@ static void pres_ftob(float **args, unsigned int n, const struct preshader_instr } }
+static void pres_ceil(float **args, unsigned int n, const struct preshader_instr *instr) +{ + float *retval = args[1]; + unsigned int i; + + for (i = 0; i < instr->comp_count; ++i) + retval[i] = ceil(args[0][i]); +} + static void pres_min(float **args, unsigned int n, const struct preshader_instr *instr) { float *retval = args[2]; @@ -680,6 +689,7 @@ static const struct preshader_op_info preshader_ops[] = { 0x131, "utof", pres_utof }, { 0x133, "ftou", pres_ftou }, { 0x137, "ftob", pres_ftob }, + { 0x13a, "ceil", pres_ceil }, { 0x200, "min", pres_min }, { 0x201, "max", pres_max }, { 0x204, "add", pres_add },