@@ -445,7 +445,7 @@ static bool win_script_preset__appear(struct win_script *output, config_setting_
445
445
}
446
446
static struct script * script_template__slide_out (int * output_slots ) {
447
447
static const struct instruction instrs [] = {
448
- {.type = INST_BRANCH_ONCE , .rel = 42 },
448
+ {.type = INST_BRANCH_ONCE , .rel = 55 },
449
449
{.type = INST_LOAD , .slot = 15 },
450
450
{.type = INST_LOAD , .slot = 14 },
451
451
{.type = INST_OP , .op = OP_SUB },
@@ -490,11 +490,27 @@ static struct script *script_template__slide_out(int *output_slots) {
490
490
{.type = INST_STORE , .slot = 7 },
491
491
{.type = INST_LOAD_CTX , .ctx = 24 },
492
492
{.type = INST_STORE , .slot = 8 },
493
+ {.type = INST_LOAD , .slot = 18 },
494
+ {.type = INST_LOAD , .slot = 17 },
495
+ {.type = INST_OP , .op = OP_SUB },
496
+ {.type = INST_LOAD , .slot = 12 },
497
+ {.type = INST_IMM , .imm = 0x0p+0 },
498
+ {.type = INST_OP , .op = OP_SUB },
499
+ {.type = INST_LOAD , .slot = 19 },
500
+ {.type = INST_OP , .op = OP_DIV },
501
+ {
502
+ .type = INST_CURVE ,
503
+ .curve = {.type = CURVE_LINEAR },
504
+ },
505
+ {.type = INST_OP , .op = OP_MUL },
506
+ {.type = INST_LOAD , .slot = 17 },
507
+ {.type = INST_OP , .op = OP_ADD },
508
+ {.type = INST_STORE , .slot = 9 },
493
509
{.type = INST_LOAD , .slot = 9 },
494
510
{.type = INST_STORE , .slot = 10 },
495
511
{.type = INST_LOAD , .slot = 9 },
496
512
{.type = INST_STORE , .slot = 11 },
497
- {.type = INST_BRANCH_ONCE , .rel = 17 },
513
+ {.type = INST_BRANCH_ONCE , .rel = 21 },
498
514
{.type = INST_HALT },
499
515
{.type = INST_IMM , .imm = 0x0p+0 },
500
516
{.type = INST_STORE_OVER_NAN , .slot = 14 },
@@ -508,9 +524,13 @@ static struct script *script_template__slide_out(int *output_slots) {
508
524
{.type = INST_OP , .op = OP_MUL },
509
525
{.type = INST_OP , .op = OP_ADD },
510
526
{.type = INST_STORE , .slot = 15 },
511
- {.type = INST_IMM , .imm = 0x1p+0 },
512
- {.type = INST_STORE , .slot = 9 },
513
- {.type = INST_BRANCH , .rel = -55 },
527
+ {.type = INST_LOAD_CTX , .ctx = 64 },
528
+ {.type = INST_STORE_OVER_NAN , .slot = 17 },
529
+ {.type = INST_LOAD_CTX , .ctx = 1073741824 },
530
+ {.type = INST_STORE , .slot = 19 },
531
+ {.type = INST_LOAD_CTX , .ctx = 64 },
532
+ {.type = INST_STORE , .slot = 18 },
533
+ {.type = INST_BRANCH , .rel = -72 },
514
534
{.type = INST_IMM , .imm = 0x0p+0 },
515
535
{.type = INST_STORE , .slot = 13 },
516
536
{.type = INST_LOAD , .slot = 16 },
@@ -519,12 +539,18 @@ static struct script *script_template__slide_out(int *output_slots) {
519
539
{.type = INST_LOAD , .slot = 13 },
520
540
{.type = INST_OP , .op = OP_MAX },
521
541
{.type = INST_STORE , .slot = 13 },
542
+ {.type = INST_LOAD , .slot = 19 },
543
+ {.type = INST_IMM , .imm = 0x0p+0 },
544
+ {.type = INST_OP , .op = OP_ADD },
545
+ {.type = INST_LOAD , .slot = 13 },
546
+ {.type = INST_OP , .op = OP_MAX },
547
+ {.type = INST_STORE , .slot = 13 },
522
548
{.type = INST_HALT },
523
549
};
524
550
struct script * ret = malloc (offsetof(struct script , instrs ) + sizeof (instrs ));
525
551
ret -> len = ARR_SIZE (instrs );
526
552
ret -> elapsed_slot = 12 ;
527
- ret -> n_slots = 17 ;
553
+ ret -> n_slots = 20 ;
528
554
ret -> stack_size = 3 ;
529
555
ret -> vars = NULL ;
530
556
ret -> overrides = NULL ;
@@ -606,6 +632,11 @@ static struct script *script_template__slide_out(int *output_slots) {
606
632
* override = (struct overridable_slot ){.name = strdup ("v-timing" ), .slot = 14 };
607
633
HASH_ADD_STR (ret -> overrides , name , override );
608
634
}
635
+ {
636
+ struct overridable_slot * override = malloc (sizeof (* override ));
637
+ * override = (struct overridable_slot ){.name = strdup ("opacity" ), .slot = 17 };
638
+ HASH_ADD_STR (ret -> overrides , name , override );
639
+ }
609
640
output_slots [0 ] = 1 ;
610
641
output_slots [1 ] = 2 ;
611
642
output_slots [2 ] = 3 ;
@@ -872,7 +903,7 @@ static bool win_script_preset__slide_in(struct win_script *output, config_settin
872
903
}
873
904
static struct script * script_template__fly_out (int * output_slots ) {
874
905
static const struct instruction instrs [] = {
875
- {.type = INST_BRANCH_ONCE , .rel = 30 },
906
+ {.type = INST_BRANCH_ONCE , .rel = 47 },
876
907
{.type = INST_LOAD , .slot = 11 },
877
908
{.type = INST_LOAD , .slot = 10 },
878
909
{.type = INST_OP , .op = OP_SUB },
@@ -909,6 +940,26 @@ static struct script *script_template__fly_out(int *output_slots) {
909
940
{.type = INST_STORE , .slot = 3 },
910
941
{.type = INST_LOAD , .slot = 2 },
911
942
{.type = INST_STORE , .slot = 4 },
943
+ {.type = INST_LOAD , .slot = 14 },
944
+ {.type = INST_LOAD , .slot = 13 },
945
+ {.type = INST_OP , .op = OP_SUB },
946
+ {.type = INST_LOAD , .slot = 8 },
947
+ {.type = INST_IMM , .imm = 0x0p+0 },
948
+ {.type = INST_OP , .op = OP_SUB },
949
+ {.type = INST_LOAD , .slot = 15 },
950
+ {.type = INST_OP , .op = OP_DIV },
951
+ {
952
+ .type = INST_CURVE ,
953
+ .curve = {.type = CURVE_LINEAR },
954
+ },
955
+ {.type = INST_OP , .op = OP_MUL },
956
+ {.type = INST_LOAD , .slot = 13 },
957
+ {.type = INST_OP , .op = OP_ADD },
958
+ {.type = INST_STORE , .slot = 5 },
959
+ {.type = INST_LOAD , .slot = 5 },
960
+ {.type = INST_STORE , .slot = 6 },
961
+ {.type = INST_LOAD , .slot = 5 },
962
+ {.type = INST_STORE , .slot = 7 },
912
963
{.type = INST_BRANCH_ONCE , .rel = 29 },
913
964
{.type = INST_HALT },
914
965
{.type = INST_IMM , .imm = 0x0p+0 },
@@ -931,13 +982,13 @@ static struct script *script_template__fly_out(int *output_slots) {
931
982
{.type = INST_OP , .op = OP_MUL },
932
983
{.type = INST_OP , .op = OP_ADD },
933
984
{.type = INST_STORE , .slot = 11 },
934
- {.type = INST_IMM , .imm = 0x1p+0 },
935
- {.type = INST_STORE , .slot = 5 },
936
- {.type = INST_IMM , .imm = 0x1p+0 },
937
- {.type = INST_STORE , .slot = 6 },
938
- {.type = INST_IMM , .imm = 0x1p+0 },
939
- {.type = INST_STORE , .slot = 7 },
940
- {.type = INST_BRANCH , .rel = -55 },
985
+ {.type = INST_LOAD_CTX , .ctx = 64 },
986
+ {.type = INST_STORE_OVER_NAN , .slot = 13 },
987
+ {.type = INST_LOAD_CTX , .ctx = 1073741824 },
988
+ {.type = INST_STORE , .slot = 15 },
989
+ {.type = INST_LOAD_CTX , .ctx = 64 },
990
+ {.type = INST_STORE , .slot = 14 },
991
+ {.type = INST_BRANCH , .rel = -72 },
941
992
{.type = INST_IMM , .imm = 0x0p+0 },
942
993
{.type = INST_STORE , .slot = 9 },
943
994
{.type = INST_LOAD , .slot = 12 },
@@ -946,12 +997,18 @@ static struct script *script_template__fly_out(int *output_slots) {
946
997
{.type = INST_LOAD , .slot = 9 },
947
998
{.type = INST_OP , .op = OP_MAX },
948
999
{.type = INST_STORE , .slot = 9 },
1000
+ {.type = INST_LOAD , .slot = 15 },
1001
+ {.type = INST_IMM , .imm = 0x0p+0 },
1002
+ {.type = INST_OP , .op = OP_ADD },
1003
+ {.type = INST_LOAD , .slot = 9 },
1004
+ {.type = INST_OP , .op = OP_MAX },
1005
+ {.type = INST_STORE , .slot = 9 },
949
1006
{.type = INST_HALT },
950
1007
};
951
1008
struct script * ret = malloc (offsetof(struct script , instrs ) + sizeof (instrs ));
952
1009
ret -> len = ARR_SIZE (instrs );
953
1010
ret -> elapsed_slot = 8 ;
954
- ret -> n_slots = 13 ;
1011
+ ret -> n_slots = 16 ;
955
1012
ret -> stack_size = 3 ;
956
1013
ret -> vars = NULL ;
957
1014
ret -> overrides = NULL ;
@@ -1009,6 +1066,11 @@ static struct script *script_template__fly_out(int *output_slots) {
1009
1066
* override = (struct overridable_slot ){.name = strdup ("v-timing" ), .slot = 10 };
1010
1067
HASH_ADD_STR (ret -> overrides , name , override );
1011
1068
}
1069
+ {
1070
+ struct overridable_slot * override = malloc (sizeof (* override ));
1071
+ * override = (struct overridable_slot ){.name = strdup ("opacity" ), .slot = 13 };
1072
+ HASH_ADD_STR (ret -> overrides , name , override );
1073
+ }
1012
1074
output_slots [0 ] = 1 ;
1013
1075
output_slots [1 ] = 2 ;
1014
1076
output_slots [2 ] = 3 ;
@@ -1088,12 +1150,12 @@ static struct script *script_template__fly_in(int *output_slots) {
1088
1150
static const struct instruction instrs [] = {
1089
1151
{.type = INST_BRANCH_ONCE , .rel = 30 },
1090
1152
{.type = INST_IMM , .imm = 0x0p+0 },
1091
- {.type = INST_LOAD , .slot = 10 },
1153
+ {.type = INST_LOAD , .slot = 7 },
1092
1154
{.type = INST_OP , .op = OP_SUB },
1093
- {.type = INST_LOAD , .slot = 8 },
1155
+ {.type = INST_LOAD , .slot = 5 },
1094
1156
{.type = INST_IMM , .imm = 0x0p+0 },
1095
1157
{.type = INST_OP , .op = OP_SUB },
1096
- {.type = INST_LOAD , .slot = 11 },
1158
+ {.type = INST_LOAD , .slot = 8 },
1097
1159
{.type = INST_OP , .op = OP_DIV },
1098
1160
{
1099
1161
.type = INST_CURVE ,
@@ -1106,7 +1168,7 @@ static struct script *script_template__fly_in(int *output_slots) {
1106
1168
.cy = 0x1.0147ae147ae16p+1 }},
1107
1169
},
1108
1170
{.type = INST_OP , .op = OP_MUL },
1109
- {.type = INST_LOAD , .slot = 10 },
1171
+ {.type = INST_LOAD , .slot = 7 },
1110
1172
{.type = INST_OP , .op = OP_ADD },
1111
1173
{.type = INST_STORE , .slot = 0 },
1112
1174
{.type = INST_LOAD , .slot = 0 },
@@ -1123,7 +1185,7 @@ static struct script *script_template__fly_in(int *output_slots) {
1123
1185
{.type = INST_STORE , .slot = 3 },
1124
1186
{.type = INST_LOAD , .slot = 2 },
1125
1187
{.type = INST_STORE , .slot = 4 },
1126
- {.type = INST_BRANCH_ONCE , .rel = 27 },
1188
+ {.type = INST_BRANCH_ONCE , .rel = 21 },
1127
1189
{.type = INST_HALT },
1128
1190
{.type = INST_LOAD_CTX , .ctx = 24 },
1129
1191
{.type = INST_LOAD_CTX , .ctx = 1073741832 },
@@ -1140,30 +1202,24 @@ static struct script *script_template__fly_in(int *output_slots) {
1140
1202
{.type = INST_LOAD_CTX , .ctx = 1073741840 },
1141
1203
{.type = INST_OP , .op = OP_MUL },
1142
1204
{.type = INST_OP , .op = OP_ADD },
1143
- {.type = INST_STORE_OVER_NAN , .slot = 10 },
1205
+ {.type = INST_STORE_OVER_NAN , .slot = 7 },
1144
1206
{.type = INST_LOAD_CTX , .ctx = 1073741824 },
1145
- {.type = INST_STORE , .slot = 11 },
1146
- {.type = INST_IMM , .imm = 0x1p+0 },
1147
- {.type = INST_STORE , .slot = 5 },
1148
- {.type = INST_IMM , .imm = 0x1p+0 },
1149
- {.type = INST_STORE , .slot = 6 },
1150
- {.type = INST_IMM , .imm = 0x1p+0 },
1151
- {.type = INST_STORE , .slot = 7 },
1152
- {.type = INST_BRANCH , .rel = -53 },
1207
+ {.type = INST_STORE , .slot = 8 },
1208
+ {.type = INST_BRANCH , .rel = -47 },
1153
1209
{.type = INST_IMM , .imm = 0x0p+0 },
1154
- {.type = INST_STORE , .slot = 9 },
1155
- {.type = INST_LOAD , .slot = 11 },
1210
+ {.type = INST_STORE , .slot = 6 },
1211
+ {.type = INST_LOAD , .slot = 8 },
1156
1212
{.type = INST_IMM , .imm = 0x0p+0 },
1157
1213
{.type = INST_OP , .op = OP_ADD },
1158
- {.type = INST_LOAD , .slot = 9 },
1214
+ {.type = INST_LOAD , .slot = 6 },
1159
1215
{.type = INST_OP , .op = OP_MAX },
1160
- {.type = INST_STORE , .slot = 9 },
1216
+ {.type = INST_STORE , .slot = 6 },
1161
1217
{.type = INST_HALT },
1162
1218
};
1163
1219
struct script * ret = malloc (offsetof(struct script , instrs ) + sizeof (instrs ));
1164
1220
ret -> len = ARR_SIZE (instrs );
1165
- ret -> elapsed_slot = 8 ;
1166
- ret -> n_slots = 12 ;
1221
+ ret -> elapsed_slot = 5 ;
1222
+ ret -> n_slots = 9 ;
1167
1223
ret -> stack_size = 3 ;
1168
1224
ret -> vars = NULL ;
1169
1225
ret -> overrides = NULL ;
@@ -1198,36 +1254,18 @@ static struct script *script_template__fly_in(int *output_slots) {
1198
1254
.name = strdup ("shadow-offset-y" ), .slot = 4 , .index = 4 };
1199
1255
HASH_ADD_STR (ret -> vars , name , var );
1200
1256
}
1201
- {
1202
- struct variable_allocation * var = malloc (sizeof (* var ));
1203
- * var = (struct variable_allocation ){
1204
- .name = strdup ("opacity" ), .slot = 5 , .index = 5 };
1205
- HASH_ADD_STR (ret -> vars , name , var );
1206
- }
1207
- {
1208
- struct variable_allocation * var = malloc (sizeof (* var ));
1209
- * var = (struct variable_allocation ){
1210
- .name = strdup ("shadow-opacity" ), .slot = 6 , .index = 6 };
1211
- HASH_ADD_STR (ret -> vars , name , var );
1212
- }
1213
- {
1214
- struct variable_allocation * var = malloc (sizeof (* var ));
1215
- * var = (struct variable_allocation ){
1216
- .name = strdup ("blur-opacity" ), .slot = 7 , .index = 7 };
1217
- HASH_ADD_STR (ret -> vars , name , var );
1218
- }
1219
1257
{
1220
1258
struct overridable_slot * override = malloc (sizeof (* override ));
1221
- * override = (struct overridable_slot ){.name = strdup ("v-timing" ), .slot = 10 };
1259
+ * override = (struct overridable_slot ){.name = strdup ("v-timing" ), .slot = 7 };
1222
1260
HASH_ADD_STR (ret -> overrides , name , override );
1223
1261
}
1224
1262
output_slots [0 ] = 1 ;
1225
1263
output_slots [1 ] = 2 ;
1226
1264
output_slots [2 ] = 3 ;
1227
1265
output_slots [3 ] = 4 ;
1228
- output_slots [4 ] = 5 ;
1229
- output_slots [5 ] = 7 ;
1230
- output_slots [6 ] = 6 ;
1266
+ output_slots [4 ] = -1 ;
1267
+ output_slots [5 ] = -1 ;
1268
+ output_slots [6 ] = -1 ;
1231
1269
output_slots [7 ] = -1 ;
1232
1270
output_slots [8 ] = -1 ;
1233
1271
output_slots [9 ] = -1 ;
0 commit comments