aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/engines/gl_common/shader/compile-s3c6410.sh
blob: 450e5def29442ae5ab281f8b7a4621c6b880d5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
ORIONEXE=/home/raster/Data/orion/orion.exe
OPTS="-O --nolodcalc -lp"

function compile()
{
  F=$1

  make-c-str.sh $F"_frag.shd" > $F"_frag.h"
  if test -f $F"_frag_s3c6410.asm"; then
    wine $ORIONEXE -a $OPTS -f $F"_frag_s3c6410.asm"
    make-c-bin.sh $F"_frag_s3c6410.bin" > $F"_frag_bin_s3c6410.h"
    rm -f   $F"_frag_s3c6410.bin"   $F"_frag_s3c6410.h"
  else
    wine $ORIONEXE $OPTS -f $F"_frag.shd"
    make-c-bin.sh $F"_frag.shd.bin" > $F"_frag_bin_s3c6410.h"
    rm -f   $F"_frag.shd.bin"   $F"_frag.shd.asm"   $F"_frag.shd.h"
  fi

  make-c-str.sh $F"_vert.shd" > $F"_vert.h"
  if test -f $F"_vert_s3c6410.asm"; then
    wine $ORIONEXE -a $OPTS -v $F"_vert_s3c6410.asm"
    make-c-bin.sh $F"_vert_s3c6410.bin" > $F"_vert_bin_s3c6410.h"
    rm -f   $F"_vert_s3c6410.bin"   $F"_vert_s3c6410.h"
  else
    wine $ORIONEXE $OPTS -v $F"_vert.shd"
    make-c-bin.sh $F"_vert.shd.bin" > $F"_vert_bin_s3c6410.h"
    rm -f   $F"_vert.shd.bin"   $F"_vert.shd.asm"   $F"_vert.shd.h"
  fi
}

compile rect
compile font
compile img
compile img_nomul
compile img_bgra
compile img_bgra_nomul
compile img_mask
compile yuv
compile yuv_nomul
compile tex
compile tex_nomul
compile nv12
compile nv12_nomul
compile yuy2
compile yuy2_nomul
## FIXME: compile filter_*