diff options
Diffstat (limited to 'src/shaders/render')
82 files changed, 0 insertions, 3019 deletions
diff --git a/src/shaders/render/Makefile.am b/src/shaders/render/Makefile.am deleted file mode 100644 index 63991ce..0000000 --- a/src/shaders/render/Makefile.am +++ /dev/null @@ -1,206 +0,0 @@ - -INTEL_G4I = \ - exa_wm.g4i \ - exa_wm_affine.g4i \ - exa_wm_yuv_color_balance.gxa \ - exa_yuv_rgb.gxa \ - exa_yuv_gen4.g4i \ - exa_yuv_gen6.g4i - -INTEL_G4A = \ - exa_sf.g4a \ - exa_wm_xy.g4a \ - exa_wm_src_affine.g4a \ - exa_wm_src_sample_argb.g4a \ - exa_wm_src_sample_planar.g4a \ - exa_wm_yuv_color_balance.g4a \ - exa_wm_yuv_rgb.g4a \ - exa_wm_write.g4a - -INTEL_G4S = $(INTEL_G4A:%.g4a=%.g4s) - -INTEL_G4B = \ - exa_sf.g4b \ - exa_wm_xy.g4b \ - exa_wm_src_affine.g4b \ - exa_wm_src_sample_argb.g4b \ - exa_wm_src_sample_planar.g4b \ - exa_wm_yuv_color_balance.g4b \ - exa_wm_yuv_rgb.g4b \ - exa_wm_write.g4b - -INTEL_G4B_GEN5 = \ - exa_sf.g4b.gen5 \ - exa_wm_xy.g4b.gen5 \ - exa_wm_src_affine.g4b.gen5 \ - exa_wm_src_sample_argb.g4b.gen5 \ - exa_wm_src_sample_planar.g4b.gen5 \ - exa_wm_yuv_color_balance.g4b.gen5 \ - exa_wm_yuv_rgb.g4b.gen5 \ - exa_wm_write.g4b.gen5 - -INTEL_G6I = $(INTEL_G4I) - -INTEL_G6A = \ - exa_wm_src_affine.g6a \ - exa_wm_src_sample_argb.g6a \ - exa_wm_src_sample_planar.g6a \ - exa_wm_write.g6a \ - exa_wm_yuv_color_balance.g6a \ - exa_wm_yuv_rgb.g6a - -INTEL_G6S = $(INTEL_G6A:%.g6a=%.g6s) - -INTEL_G6B = \ - exa_wm_src_affine.g6b \ - exa_wm_src_sample_argb.g6b \ - exa_wm_src_sample_planar.g6b \ - exa_wm_write.g6b \ - exa_wm_yuv_color_balance.g6b \ - exa_wm_yuv_rgb.g6b - -INTEL_G7I = $(INTEL_G4I) \ - exa_wm_write.g7i - -INTEL_G7A = \ - exa_wm_src_affine.g7a \ - exa_wm_src_sample_argb.g7a \ - exa_wm_src_sample_planar.g7a \ - exa_wm_write.g7a \ - exa_wm_yuv_color_balance.g7a \ - exa_wm_yuv_rgb.g7a - -INTEL_G7S = $(INTEL_G7A:%.g7a=%.g7s) - -INTEL_G7B = \ - exa_wm_src_affine.g7b \ - exa_wm_src_sample_argb.g7b \ - exa_wm_src_sample_planar.g7b \ - exa_wm_write.g7b \ - exa_wm_yuv_color_balance.g7b \ - exa_wm_yuv_rgb.g7b - -# XXX: only regenerate binary for EU code containing JMPI instructions -INTEL_G7B_HASWELL = \ - exa_wm_src_sample_planar.g7b.haswell \ - exa_wm_yuv_color_balance.g7b.haswell \ - $(NULL) - -INTEL_G8A = \ - exa_wm_src_affine.g8a \ - exa_wm_src_sample_planar.g8a \ - exa_wm_src_sample_argb.g8a \ - exa_wm_yuv_color_balance.g8a \ - exa_wm_write.g8a \ - exa_wm_yuv_rgb.g8a - -INTEL_G8S = $(INTEL_G8A:%.g8a=%.g8s) - -INTEL_G8B = \ - exa_wm_src_affine.g8b \ - exa_wm_src_sample_planar.g8b \ - exa_wm_src_sample_argb.g8b \ - exa_wm_yuv_color_balance.g8b \ - exa_wm_yuv_rgb.g8b \ - exa_wm_write.g8b - -INTEL_G9A = \ - exa_wm_src_affine.g9a \ - exa_wm_src_sample_planar.g9a \ - exa_wm_src_sample_argb.g9a \ - exa_wm_yuv_color_balance.g9a \ - exa_wm_write.g9a \ - exa_wm_yuv_rgb.g9a - -INTEL_G9I = $(INTEL_G4I) - -INTEL_G9S = $(INTEL_G9A:%.g9a=%.g9s) - -INTEL_G9B = \ - exa_wm_src_affine.g9b \ - exa_wm_src_sample_planar.g9b \ - exa_wm_src_sample_argb.g9b \ - exa_wm_yuv_color_balance.g9b \ - exa_wm_yuv_rgb.g9b \ - exa_wm_write.g9b - -TARGETS = -if HAVE_GEN4ASM -TARGETS += $(INTEL_G4B) -TARGETS += $(INTEL_G4B_GEN5) -TARGETS += $(INTEL_G6B) -TARGETS += $(INTEL_G7B) -TARGETS += $(INTEL_G7B_HASWELL) -TARGETS += $(INTEL_G8B) -TARGETS += $(INTEL_G9B) -endif - -all-local: $(TARGETS) - -SUFFIXES = .g4a .g4s .g4b .g4b.gen5 .g6a .g6s .g6b .g7a .g7s .g7b .g7b.haswell .g8a .g8b .g8s - -if HAVE_GEN4ASM -$(INTEL_G4S): $(INTEL_G4A) $(INTEL_G4I) -.g4a.g4s: - $(AM_V_GEN)m4 -I$(srcdir) $< > $@ -.g4s.g4b: - $(AM_V_GEN)$(GEN4ASM) -o $@ $< -.g4s.g4b.gen5: - $(AM_V_GEN)$(GEN4ASM) -g 5 -o $@ $< - -$(INTEL_G6S): $(INTEL_G6A) $(INTEL_G6I) -.g6a.g6s: - $(AM_V_GEN)m4 -I$(srcdir) $< > $@ -.g6s.g6b: - $(AM_V_GEN)$(GEN4ASM) -g 6 -o $@ $< - -$(INTEL_G7S): $(INTEL_G7A) $(INTEL_G7I) -.g7a.g7s: - $(AM_V_GEN)m4 -I$(srcdir) $< > $@ -.g7s.g7b: - $(AM_V_GEN)$(GEN4ASM) -g 7 -o $@ $< -.g7s.g7b.haswell: - $(AM_V_GEN)$(GEN4ASM) -g 7.5 -o $@ $< - - -$(INTEL_G8S): $(INTEL_G8A) $(INTEL_G8I) -.g8a.g8s: - $(AM_V_GEN)m4 -I$(srcdir) $< > $@ -.g8s.g8b: - $(AM_V_GEN)$(GEN4ASM) -g 8 -o $@ $< - -$(INTEL_G9S): $(INTEL_G9A) $(INTEL_G9I) -.g9a.g9s: - $(AM_V_GEN)m4 -I$(srcdir) $< > $@ -.g9s.g9b: - $(AM_V_GEN)$(GEN4ASM) -g 9 -o $@ $< - -endif - -CLEANFILES = \ - $(INTEL_G4S) \ - $(INTEL_G6S) \ - $(INTEL_G7S) \ - $(INTEL_G8S) \ - $(INTEL_G9S) \ - $(NULL) - -EXTRA_DIST = \ - $(INTEL_G4A) \ - $(INTEL_G4B) \ - $(INTEL_G4B_GEN5) \ - $(INTEL_G4I) \ - $(INTEL_G6A) \ - $(INTEL_G6B) \ - $(INTEL_G7A) \ - $(INTEL_G7B) \ - $(INTEL_G7B_HASWELL) \ - $(INTEL_G7I) \ - $(INTEL_G8A) \ - $(INTEL_G8B) \ - $(INTEL_G9A) \ - $(INTEL_G9B) \ - $(NULL) - -# Extra clean files so that maintainer-clean removes *everything* -MAINTAINERCLEANFILES = Makefile.in diff --git a/src/shaders/render/exa_sf.g4a b/src/shaders/render/exa_sf.g4a deleted file mode 100644 index 3e660ac..0000000 --- a/src/shaders/render/exa_sf.g4a +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * - */ - -/* - * Inputs (note all sub-register addresses are bytes, not float indices) - * - * Note that the vertices will have been reordered: - * - * V0 is topmost (leftmost among topmost) (upper left) - * V1 is next clockwise (lower right) - * V2 is remaining (lower left) - * - * V0 ...................... XX - * | . - * | . - * | . - * V2------------------------V1 - * - * G0 thread state -- just pass along - * - * G1 and G2 are fixed by SF spec - * - * G1.0 reserved - * G1.4 Provoking vertex - * G1.8 Determinant - * G1.12 X1 - X0 - * G1.16 X2 - X0 - * G1.20 Y1 - Y0 - * G1.24 Y2 - Y0 - * G1.30 reserved - * - * G2.0 Z0 - * G2.4 1/W0 - * G2.8 Z1 - * G2.12 1/W1 - * G2.16 Z2 - * G2.20 1/W2 - * G2.24 reserved - * G2.30 reserved - * - * G3 is V0 Vertex Attribute Data from URB (upper left) - * - * G3.0 u0 - * G3.4 v0 - * - * G4 is V1 Vertex Attribute Data from URB (lower right) - * - * G4.0 u1 - * G4.4 v1 - * - * G5 is V2 Vertex Attribute Data from URB (lower left) - * - */ - -/* Compute inverses of the input deltas */ -send (4) 0 g6<1>F g1.12<4,4,1>F math inv mlen 1 rlen 1 { align1 }; - -/* texture location at V0 */ -mov (4) m3<1>F g3<4,4,1>F { align1 }; - -/* compute V1 - V2 (motion in X) for texture coordinates */ -add (4) g7<1>F g4<4,4,1>F -g5<4,4,1>F { align1 }; - -/* multiply by 1/dx */ -mul (4) m1<1>F g7<4,4,1>F g6.0<0,1,0>F { align1 }; - -/* Compute V2 - V0 (motion in Y) for texture coordinates */ -add (4) g7<1>F g5<4,4,1>F -g3<4,4,1>F { align1 }; - -/* multiply by 1/dy */ -mul (4) m2<1>F g7<4,4,1>F g6.8<0,1,0>F {align1 }; - -/* and we're done */ -send (8) 0 null g0<8,8,1>F urb 0 transpose used complete mlen 4 rlen 0 { align1 EOT }; -nop; -nop; -nop; -nop; -nop; -nop; -nop; -nop; diff --git a/src/shaders/render/exa_sf.g4b b/src/shaders/render/exa_sf.g4b deleted file mode 100644 index 223c9c9..0000000 --- a/src/shaders/render/exa_sf.g4b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x00400031, 0x20c01fbd, 0x0069002c, 0x01110001 }, - { 0x00400001, 0x206003be, 0x00690060, 0x00000000 }, - { 0x00400040, 0x20e077bd, 0x00690080, 0x006940a0 }, - { 0x00400041, 0x202077be, 0x006900e0, 0x000000c0 }, - { 0x00400040, 0x20e077bd, 0x006900a0, 0x00694060 }, - { 0x00400041, 0x204077be, 0x006900e0, 0x000000c8 }, - { 0x00600031, 0x20001fbc, 0x008d0000, 0x8640c800 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_sf.g4b.gen5 b/src/shaders/render/exa_sf.g4b.gen5 deleted file mode 100644 index a838f47..0000000 --- a/src/shaders/render/exa_sf.g4b.gen5 +++ /dev/null @@ -1,15 +0,0 @@ - { 0x00400031, 0x20c01fbd, 0x1069002c, 0x02100001 }, - { 0x00400001, 0x206003be, 0x00690060, 0x00000000 }, - { 0x00400040, 0x20e077bd, 0x00690080, 0x006940a0 }, - { 0x00400041, 0x202077be, 0x006900e0, 0x000000c0 }, - { 0x00400040, 0x20e077bd, 0x006900a0, 0x00694060 }, - { 0x00400041, 0x204077be, 0x006900e0, 0x000000c8 }, - { 0x00600031, 0x20001fbc, 0x648d0000, 0x8808c800 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm.g4i b/src/shaders/render/exa_wm.g4i deleted file mode 100644 index e186d3a..0000000 --- a/src/shaders/render/exa_wm.g4i +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright © 2006-2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* - * Input parameters - */ - -/* Destination X/Y */ -define(`dst_x_uw', `g1.8<2,4,0>UW') -define(`dst_y_uw', `g1.10<2,4,0>UW') -define(`screen_x0', `g1.0<0,1,0>F') -define(`screen_y0', `g1.4<0,1,0>F') - -/* UV flag */ -define(`interleaved_uv', `g2.0<0,1,0>UW') - -/* Source transformation parameters */ -define(`src_du_dx', `g6.0<0,1,0>F') -define(`src_du_dy', `g6.4<0,1,0>F') -define(`src_uo', `g6.12<0,1,0>F') -define(`src_dv_dx', `g6.16<0,1,0>F') -define(`src_dv_dy', `g6.20<0,1,0>F') -define(`src_vo', `g6.28<0,1,0>F') -define(`src_dw_dx', `g7.0<0,1,0>F') -define(`src_dw_dy', `g7.4<0,1,0>F') -define(`src_wo', `g7.12<0,1,0>F') - -define(`mask_du_dx', `g8.0<0,1,0>F') -define(`mask_du_dy', `g8.4<0,1,0>F') -define(`mask_uo', `g8.12<0,1,0>F') -define(`mask_dv_dx', `g8.16<0,1,0>F') -define(`mask_dv_dy', `g8.20<0,1,0>F') -define(`mask_vo', `g8.28<0,1,0>F') -define(`mask_dw_dx', `g9.0<0,1,0>F') -define(`mask_dw_dy', `g9.4<0,1,0>F') -define(`mask_wo', `g9.12<0,1,0>F') - -/* Attribute for snb+ */ -define(`a0_a_x',`g10.0<0,1,0>F') -define(`a0_a_y',`g10.16<0,1,0>F') - -/* - * Local variables. Pairs must be aligned on even reg boundry - */ - -/* this holds the X dest coordinates */ -define(`dst_x', `g42') -define(`dst_x_0', `dst_x') -define(`dst_x_1', `g43') - -/* this holds the Y dest coordinates */ -define(`dst_y', `g44') -define(`dst_y_0', `dst_y') -define(`dst_y_1', `g45') - -/* When computing x * dn/dx, use this */ -define(`temp_x', `g30') -define(`temp_x_0', `temp_x') -define(`temp_x_1', `g31') - -/* When computing y * dn/dy, use this */ -define(`temp_y', `g28') -define(`temp_y_0', temp_y) -define(`temp_y_1', `g29') - -/* when loading x/y, use these to hold them in UW format */ -define(`temp_x_uw', temp_x) -define(`temp_y_uw', temp_y) - -/* compute source and mask u/v to this pair to send to sampler */ -define(`src_msg', `m1') -define(`src_msg_ind',`1') -define(`src_u', `m2') -define(`src_v', `m4') -define(`src_w', `g12') -define(`src_w_0', `src_w') -define(`src_w_1', `g13') - -define(`mask_msg', `m7') -define(`mask_msg_ind',`7') -define(`mask_u', `m8') -define(`mask_v', `m10') -define(`mask_w', `src_w') -define(`mask_w_0', `src_w_0') -define(`mask_w_1', `src_w_1') - -/* sample src to these registers */ -define(`src_sample_base', `g14') - -define(`src_sample_r', `g14') -define(`src_sample_r_01', `g14') -define(`src_sample_r_23', `g15') - -define(`src_sample_g', `g16') -define(`src_sample_g_01', `g16') -define(`src_sample_g_23', `g17') - -define(`src_sample_b', `g18') -define(`src_sample_b_01', `g18') -define(`src_sample_b_23', `g19') - -define(`src_sample_a', `g20') -define(`src_sample_a_01', `g20') -define(`src_sample_a_23', `g21') - -/* sample mask to these registers */ -define(`mask_sample_base', `g22') - -define(`mask_sample_r', `g22') -define(`mask_sample_r_01', `g22') -define(`mask_sample_r_23', `g23') - -define(`mask_sample_g', `g24') -define(`mask_sample_g_01', `g24') -define(`mask_sample_g_23', `g25') - -define(`mask_sample_b', `g26') -define(`mask_sample_b_01', `g26') -define(`mask_sample_b_23', `g27') - -define(`mask_sample_a', `g28') -define(`mask_sample_a_01', `g28') -define(`mask_sample_a_23', `g29') - -/* Color Balance to these registers */ -define(`color_balance_base', `g32') - -define(`color_balance_r', `g32') -define(`color_balance_r_01', `g32') -define(`color_balance_r_23', `g33') - -define(`color_balance_g', `g34') -define(`color_balance_g_01', `g34') -define(`color_balance_g_23', `g35') - -define(`color_balance_b', `g36') -define(`color_balance_b_01', `g37') -define(`color_balance_b_23', `g37') - -define(`color_balance_a', `g38') -define(`color_balance_a_01', `g39') -define(`color_balance_a_23', `g39') - -/* data port SIMD16 send registers */ - -define(`data_port_msg_0', `m0') -define(`data_port_msg_0_ind', `0') -define(`data_port_msg_1', `m1') -define(`data_port_r_01', `m2') -define(`data_port_g_01', `m3') -define(`data_port_b_01', `m4') -define(`data_port_a_01', `m5') - -define(`data_port_r_23', `m6') -define(`data_port_g_23', `m7') -define(`data_port_b_23', `m8') -define(`data_port_a_23', `m9') - diff --git a/src/shaders/render/exa_wm_affine.g4i b/src/shaders/render/exa_wm_affine.g4i deleted file mode 100644 index e72656b..0000000 --- a/src/shaders/render/exa_wm_affine.g4i +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* - * Fragment to compute src u/v values under an affine transform - */ - -/********** Compute u *************/ - -mul (16) temp_x<1>F dst_x<8,8,1>F du_dx { compr align1 }; -mul (16) temp_y<1>F dst_y<8,8,1>F du_dy { compr align1 }; -add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 }; -add (16) u<1>F temp_x<8,8,1>F uo { compr align1 }; - -/********** Compute v *************/ - -mul (16) temp_x<1>F dst_x<8,8,1>F dv_dx { compr align1 }; -mul (16) temp_y<1>F dst_y<8,8,1>F dv_dy { compr align1 }; -add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 }; -add (16) v<1>F temp_x<8,8,1>F vo { compr align1 }; diff --git a/src/shaders/render/exa_wm_src_affine.g4a b/src/shaders/render/exa_wm_src_affine.g4a deleted file mode 100644 index 3194b5a..0000000 --- a/src/shaders/render/exa_wm_src_affine.g4a +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* - * Fragment to compute src u/v values under an affine transform - */ - -include(`exa_wm.g4i') - -define(`du_dx', `src_du_dx') -define(`du_dy', `src_du_dy') -define(`uo', `src_uo') - -define(`dv_dx', `src_dv_dx') -define(`dv_dy', `src_dv_dy') -define(`vo', `src_vo') - -define(`u', `src_u') -define(`v', `src_v') - -include(`exa_wm_affine.g4i') diff --git a/src/shaders/render/exa_wm_src_affine.g4b b/src/shaders/render/exa_wm_src_affine.g4b deleted file mode 100644 index 7507b72..0000000 --- a/src/shaders/render/exa_wm_src_affine.g4b +++ /dev/null @@ -1,8 +0,0 @@ - { 0x00802041, 0x23c077bd, 0x008d0540, 0x000000c0 }, - { 0x00802041, 0x238077bd, 0x008d0580, 0x000000c4 }, - { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 }, - { 0x00802040, 0x204077be, 0x008d03c0, 0x000000cc }, - { 0x00802041, 0x23c077bd, 0x008d0540, 0x000000d0 }, - { 0x00802041, 0x238077bd, 0x008d0580, 0x000000d4 }, - { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 }, - { 0x00802040, 0x208077be, 0x008d03c0, 0x000000dc }, diff --git a/src/shaders/render/exa_wm_src_affine.g4b.gen5 b/src/shaders/render/exa_wm_src_affine.g4b.gen5 deleted file mode 100644 index 7507b72..0000000 --- a/src/shaders/render/exa_wm_src_affine.g4b.gen5 +++ /dev/null @@ -1,8 +0,0 @@ - { 0x00802041, 0x23c077bd, 0x008d0540, 0x000000c0 }, - { 0x00802041, 0x238077bd, 0x008d0580, 0x000000c4 }, - { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 }, - { 0x00802040, 0x204077be, 0x008d03c0, 0x000000cc }, - { 0x00802041, 0x23c077bd, 0x008d0540, 0x000000d0 }, - { 0x00802041, 0x238077bd, 0x008d0580, 0x000000d4 }, - { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 }, - { 0x00802040, 0x208077be, 0x008d03c0, 0x000000dc }, diff --git a/src/shaders/render/exa_wm_src_affine.g6a b/src/shaders/render/exa_wm_src_affine.g6a deleted file mode 100644 index 04358cb..0000000 --- a/src/shaders/render/exa_wm_src_affine.g6a +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright © 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -/* - * Fragment to compute src u/v values - */ -include(`exa_wm.g4i') - -define(`ul', `src_u') -define(`uh', `m3') -define(`vl', `src_v') -define(`vh', `m5') - -define(`bl', `g2.0<8,8,1>F') -define(`bh', `g4.0<8,8,1>F') - -/* U */ -pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */ -pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */ - -/* V */ -pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */ -pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */ diff --git a/src/shaders/render/exa_wm_src_affine.g6b b/src/shaders/render/exa_wm_src_affine.g6b deleted file mode 100644 index 22c1d22..0000000 --- a/src/shaders/render/exa_wm_src_affine.g6b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x0060005a, 0x204077be, 0x00000140, 0x008d0040 }, - { 0x0060005a, 0x206077be, 0x00000140, 0x008d0080 }, - { 0x0060005a, 0x208077be, 0x00000150, 0x008d0040 }, - { 0x0060005a, 0x20a077be, 0x00000150, 0x008d0080 }, diff --git a/src/shaders/render/exa_wm_src_affine.g7a b/src/shaders/render/exa_wm_src_affine.g7a deleted file mode 100644 index 88e5ed5..0000000 --- a/src/shaders/render/exa_wm_src_affine.g7a +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright © 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -/* - * Fragment to compute src u/v values - */ -include(`exa_wm.g4i') - -define(`ul', `g66') -define(`uh', `g67') -define(`vl', `g68') -define(`vh', `g69') - -define(`bl', `g2.0<8,8,1>F') -define(`bh', `g4.0<8,8,1>F') - - -/* U */ -pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */ -pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */ - -/* V */ -pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */ -pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */ diff --git a/src/shaders/render/exa_wm_src_affine.g7b b/src/shaders/render/exa_wm_src_affine.g7b deleted file mode 100644 index a15b7b6..0000000 --- a/src/shaders/render/exa_wm_src_affine.g7b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x0060005a, 0x284077bd, 0x00000140, 0x008d0040 }, - { 0x0060005a, 0x286077bd, 0x00000140, 0x008d0080 }, - { 0x0060005a, 0x288077bd, 0x00000150, 0x008d0040 }, - { 0x0060005a, 0x28a077bd, 0x00000150, 0x008d0080 }, diff --git a/src/shaders/render/exa_wm_src_affine.g8a b/src/shaders/render/exa_wm_src_affine.g8a deleted file mode 100644 index 7927c3b..0000000 --- a/src/shaders/render/exa_wm_src_affine.g8a +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -/* - * Fragment to compute src u/v values - */ -include(`exa_wm.g4i') - -define(`ul', `g66') -define(`uh', `g67') -define(`vl', `g68') -define(`vh', `g69') - -define(`bl', `g2.0<8,8,1>F') -define(`bh', `g4.0<8,8,1>F') - - -/* U */ -pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */ -pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */ - -/* V */ -pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */ -pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */ diff --git a/src/shaders/render/exa_wm_src_affine.g8b b/src/shaders/render/exa_wm_src_affine.g8b deleted file mode 100644 index f5f9eca..0000000 --- a/src/shaders/render/exa_wm_src_affine.g8b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x0060005a, 0x28403ae8, 0x3a000140, 0x008d0040 }, - { 0x0060005a, 0x28603ae8, 0x3a000140, 0x008d0080 }, - { 0x0060005a, 0x28803ae8, 0x3a000150, 0x008d0040 }, - { 0x0060005a, 0x28a03ae8, 0x3a000150, 0x008d0080 }, diff --git a/src/shaders/render/exa_wm_src_affine.g9a b/src/shaders/render/exa_wm_src_affine.g9a deleted file mode 100644 index 832f70c..0000000 --- a/src/shaders/render/exa_wm_src_affine.g9a +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright © 2014 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -/* - * Fragment to compute src u/v values - */ -include(`exa_wm.g4i') - -define(`ul', `g66') -define(`uh', `g67') -define(`vl', `g68') -define(`vh', `g69') - -define(`bl', `g2.0<8,8,1>F') -define(`bh', `g4.0<8,8,1>F') - - -/* U */ -pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */ -pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */ - -/* V */ -pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */ -pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */ diff --git a/src/shaders/render/exa_wm_src_affine.g9b b/src/shaders/render/exa_wm_src_affine.g9b deleted file mode 100644 index f5f9eca..0000000 --- a/src/shaders/render/exa_wm_src_affine.g9b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x0060005a, 0x28403ae8, 0x3a000140, 0x008d0040 }, - { 0x0060005a, 0x28603ae8, 0x3a000140, 0x008d0080 }, - { 0x0060005a, 0x28803ae8, 0x3a000150, 0x008d0040 }, - { 0x0060005a, 0x28a03ae8, 0x3a000150, 0x008d0080 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g4a b/src/shaders/render/exa_wm_src_sample_argb.g4a deleted file mode 100644 index c657655..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g4a +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface */ - -include(`exa_wm.g4i') - -define(`global_alpha', `r2.0<0,1,0>f') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -/* load argb */ -mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ -send (16) src_msg_ind /* msg reg index */ - src_sample_base<1>UW /* readback */ - g0<8,8,1>UW /* copy to msg start reg*/ - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */ - -mul (8) src_sample_a_01<1>f src_sample_a_01<8,8,1>f global_alpha { align1 }; -mul (8) src_sample_a_23<1>f src_sample_a_23<8,8,1>f global_alpha { align1 }; diff --git a/src/shaders/render/exa_wm_src_sample_argb.g4b b/src/shaders/render/exa_wm_src_sample_argb.g4b deleted file mode 100644 index 42e4a68..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g4b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x00000201, 0x20080061, 0x00000000, 0x00000000 }, - { 0x01800031, 0x21c01d29, 0x008d0000, 0x02580001 }, - { 0x00600041, 0x228077bd, 0x008d0280, 0x00000040 }, - { 0x00600041, 0x22a077bd, 0x008d02a0, 0x00000040 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g4b.gen5 b/src/shaders/render/exa_wm_src_sample_argb.g4b.gen5 deleted file mode 100644 index 2012f89..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g4b.gen5 +++ /dev/null @@ -1,4 +0,0 @@ - { 0x00000201, 0x20080061, 0x00000000, 0x00000000 }, - { 0x01800031, 0x21c01d29, 0x208d0000, 0x0a8a0001 }, - { 0x00600041, 0x228077bd, 0x008d0280, 0x00000040 }, - { 0x00600041, 0x22a077bd, 0x008d02a0, 0x00000040 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g6a b/src/shaders/render/exa_wm_src_sample_argb.g6a deleted file mode 100644 index c30b209..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g6a +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface */ - -include(`exa_wm.g4i') - -/* subpicture global alpha */ -define(`global_alpha', `r6.0<0,1,0>f') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -/* load argb */ -mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable }; -mov (8) src_msg<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ -send (16) src_msg_ind /* msg reg index */ - src_sample_base<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */ - -mul (8) src_sample_a_01<1>f src_sample_a_01<8,8,1>f global_alpha { align1 }; -mul (8) src_sample_a_23<1>f src_sample_a_23<1>f global_alpha { align1 }; - diff --git a/src/shaders/render/exa_wm_src_sample_argb.g6b b/src/shaders/render/exa_wm_src_sample_argb.g6b deleted file mode 100644 index 53c6248..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g6b +++ /dev/null @@ -1,5 +0,0 @@ - { 0x00000201, 0x20080061, 0x00000000, 0x00000000 }, - { 0x00600201, 0x20200022, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c01cc9, 0x00000020, 0x0a8a0001 }, - { 0x00600041, 0x228077bd, 0x008d0280, 0x000000c0 }, - { 0x00600041, 0x22a077bd, 0x002002a0, 0x000000c0 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g7a b/src/shaders/render/exa_wm_src_sample_argb.g7a deleted file mode 100644 index 0165f7b..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g7a +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen7', `g65') -define(`src_msg_ind_gen7',`65') - -/* subpicture global alpha */ -define(`global_alpha', `r6.0<0,1,0>f') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -/* load argb */ -mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable }; -mov (8) src_msg_gen7<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ -send (16) src_msg_ind_gen7 /* msg reg index */ - src_sample_base<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */ - -mul (8) src_sample_a_01<1>f src_sample_a_01<8,8,1>f global_alpha { align1 mask_disable }; -mul (8) src_sample_a_23<1>f src_sample_a_23<8,8,1>f global_alpha { align1 mask_disable }; - diff --git a/src/shaders/render/exa_wm_src_sample_argb.g7b b/src/shaders/render/exa_wm_src_sample_argb.g7b deleted file mode 100644 index 0708bc0..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g7b +++ /dev/null @@ -1,5 +0,0 @@ - { 0x00000201, 0x20080061, 0x00000000, 0x00000000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c01ca9, 0x00000820, 0x0a8c0001 }, - { 0x00600241, 0x228077bd, 0x008d0280, 0x000000c0 }, - { 0x00600241, 0x22a077bd, 0x008d02a0, 0x000000c0 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g8a b/src/shaders/render/exa_wm_src_sample_argb.g8a deleted file mode 100644 index 3a4e99f..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g8a +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen8', `g65') -define(`src_msg_ind_gen8',`65') - -/* subpicture global alpha */ -define(`global_alpha', `r6.0<0,1,0>f') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -/* load argb */ -mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_base<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */ - -mul (8) src_sample_a_01<1>f src_sample_a_01<8,8,1>f global_alpha { align1 mask_disable }; -mul (8) src_sample_a_23<1>f src_sample_a_23<8,8,1>f global_alpha { align1 mask_disable }; - diff --git a/src/shaders/render/exa_wm_src_sample_argb.g8b b/src/shaders/render/exa_wm_src_sample_argb.g8b deleted file mode 100644 index 2b04637..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g8b +++ /dev/null @@ -1,5 +0,0 @@ - { 0x00000001, 0x2008060c, 0x00000000, 0x00000000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c00a48, 0x0e000820, 0x0a8c0001 }, - { 0x00600041, 0x22803aec, 0x3a8d0280, 0x000000c0 }, - { 0x00600041, 0x22a03aec, 0x3a8d02a0, 0x000000c0 }, diff --git a/src/shaders/render/exa_wm_src_sample_argb.g9a b/src/shaders/render/exa_wm_src_sample_argb.g9a deleted file mode 100644 index ca57ea6..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g9a +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright © 2014 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - * Zhao Yakui <yakui.zhao@intel.com> - */ - -/* Sample the src surface */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen8', `g65') -define(`src_msg_ind_gen8',`65') - -/* subpicture global alpha */ -define(`global_alpha', `r6.0<0,1,0>f') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -/* load argb */ -mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_base<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */ - -mul (8) src_sample_a_01<1>f src_sample_a_01<8,8,1>f global_alpha { align1 mask_disable }; -mul (8) src_sample_a_23<1>f src_sample_a_23<8,8,1>f global_alpha { align1 mask_disable }; diff --git a/src/shaders/render/exa_wm_src_sample_argb.g9b b/src/shaders/render/exa_wm_src_sample_argb.g9b deleted file mode 100644 index 5cd181e..0000000 --- a/src/shaders/render/exa_wm_src_sample_argb.g9b +++ /dev/null @@ -1,5 +0,0 @@ - { 0x00000001, 0x2008060c, 0x00000000, 0x00000000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c00a48, 0x06000820, 0x0a8c0001 }, - { 0x00600041, 0x22803aec, 0x3a8d0280, 0x000000c0 }, - { 0x00600041, 0x22a03aec, 0x3a8d02a0, 0x000000c0 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g4a b/src/shaders/render/exa_wm_src_sample_planar.g4a deleted file mode 100644 index 8cbb289..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g4a +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface in planar format */ - -include(`exa_wm.g4i') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ - -and.nz (1) null interleaved_uv 0x01UW {align1}; -(f0) jmpi INTERLEAVED_UV; - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ - -/* sample U (Cr) */ -send (16) src_msg_ind /* msg reg index */ - src_sample_g<1>UW /* readback */ - g0<8,8,1>UW /* copy to msg start reg*/ - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -/* sample V (Cb) */ -send (16) src_msg_ind /* msg reg index */ - src_sample_b<1>UW /* readback */ - g0<8,8,1>UW /* copy to msg start reg*/ - sampler (5,4,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -jmpi SAMPLE_Y; - -INTERLEAVED_UV: -/* load r */ -mov (1) g0.8<1>UD 0x0000c000UD { align1 mask_disable }; - -/* sample UV (CrCb) */ -send (16) src_msg_ind /* msg reg index */ - src_sample_g<1>UW /* readback */ - g0<8,8,1>UW /* copy to msg start reg*/ - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 4 { align1 }; /* required message len 5, readback len 8 */ - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; - -SAMPLE_Y: -/* sample Y */ -send (16) src_msg_ind /* msg reg index */ - src_sample_r<1>UW /* readback */ - g0<8,8,1>UW /* copy to msg start reg*/ - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - diff --git a/src/shaders/render/exa_wm_src_sample_planar.g4b b/src/shaders/render/exa_wm_src_sample_planar.g4b deleted file mode 100644 index 94f2f3b..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g4b +++ /dev/null @@ -1,10 +0,0 @@ - { 0x02000005, 0x20002d3c, 0x00000040, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x01800031, 0x22001d29, 0x008d0000, 0x02520203 }, - { 0x01800031, 0x22401d29, 0x008d0000, 0x02520405 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000c000 }, - { 0x01800031, 0x22001d29, 0x008d0000, 0x02540203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x01800031, 0x21c01d29, 0x008d0000, 0x02520001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g4b.gen5 b/src/shaders/render/exa_wm_src_sample_planar.g4b.gen5 deleted file mode 100644 index c645723..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g4b.gen5 +++ /dev/null @@ -1,10 +0,0 @@ - { 0x02000005, 0x20002d3c, 0x00000040, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x01800031, 0x22001d29, 0x208d0000, 0x0a2a0203 }, - { 0x01800031, 0x22401d29, 0x208d0000, 0x0a2a0405 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000c000 }, - { 0x01800031, 0x22001d29, 0x208d0000, 0x0a4a0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x01800031, 0x21c01d29, 0x208d0000, 0x0a2a0001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g6a b/src/shaders/render/exa_wm_src_sample_planar.g6a deleted file mode 100644 index 9f907fc..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g6a +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface in planar format */ - -include(`exa_wm.g4i') -/* UV flag */ -define(`nv12', `g6.0<0,1,0>UW') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ -cmp.g.f0.0 (1) null nv12 0x0UW {align1}; -(f0.0) jmpi INTERLEAVED_UV; - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* src_msg will be copied with g0, as it contains send desc */ -/* emit sampler 'send' cmd */ - -/* sample U (Cr) */ -send (16) src_msg_ind /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -/* sample V (Cb) */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg<1>UD g0<8,8,1>UD { align1 mask_disable }; - -send (16) src_msg_ind /* msg reg index */ - src_sample_b<1>UW /* readback */ - null - sampler (5,4,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -jmpi SAMPLE_Y; - -INTERLEAVED_UV: -mov (1) g0.8<1>UD 0x0000c000UD { align1 mask_disable }; -mov (8) src_msg<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample UV (CrCb) */ -send (16) src_msg_ind /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 4 { align1 }; /* required message len 5, readback len 8 */ - -SAMPLE_Y: -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample Y */ -send (16) src_msg_ind /* msg reg index */ - src_sample_r<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - diff --git a/src/shaders/render/exa_wm_src_sample_planar.g6b b/src/shaders/render/exa_wm_src_sample_planar.g6b deleted file mode 100644 index e9368b6..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g6b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x03000010, 0x20002d3c, 0x000000c0, 0x00000000 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x20200022, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001cc9, 0x00000020, 0x0a2a0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x20200022, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22401cc9, 0x00000020, 0x0a2a0405 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000c000 }, - { 0x00600201, 0x20200022, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001cc9, 0x00000020, 0x0a4a0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x20200022, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c01cc9, 0x00000020, 0x0a2a0001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g7a b/src/shaders/render/exa_wm_src_sample_planar.g7a deleted file mode 100644 index 8a47fb5..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g7a +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* Sample the src surface in planar format */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen7', `g65') -define(`src_msg_ind_gen7',`65') -/* UV flag */ -define(`uv_flag', `g6.0<0,1,0>UW') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ -cmp.e.f0.0 (1) null uv_flag 0x1UW {align1}; -(f0.0) jmpi INTERLEAVED_UV; - -cmp.e.f0.0 (1) null uv_flag 0x2UW {align1}; -(f0.0) jmpi CONSTANT_UV; - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen7<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* emit sampler 'send' cmd */ - -/* sample U (Cr) */ -send (16) src_msg_ind_gen7 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -/* sample V (Cb) */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen7<1>UD g0<8,8,1>UD { align1 mask_disable }; - -send (16) src_msg_ind_gen7 /* msg reg index */ - src_sample_b<1>UW /* readback */ - null - sampler (5,4,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -jmpi SAMPLE_Y; - -CONSTANT_UV: -mov (16) src_sample_g<1>f 0.5f { compr align1 mask_disable }; -mov (16) src_sample_b<1>f 0.5f { compr align1 mask_disable }; - -jmpi SAMPLE_Y; - -INTERLEAVED_UV: -mov (1) g0.8<1>UD 0x0000c000UD { align1 mask_disable }; -mov (8) src_msg_gen7<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample UV (CrCb) */ -send (16) src_msg_ind_gen7 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 4 { align1 }; /* required message len 5, readback len 8 */ - - -SAMPLE_Y: -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen7<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample Y */ -send (16) src_msg_ind_gen7 /* msg reg index */ - src_sample_r<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - diff --git a/src/shaders/render/exa_wm_src_sample_planar.g7b b/src/shaders/render/exa_wm_src_sample_planar.g7b deleted file mode 100644 index 598bd66..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g7b +++ /dev/null @@ -1,20 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x000000c0, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 }, - { 0x01000010, 0x20002d3c, 0x000000c0, 0x00020002 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001ca9, 0x00000820, 0x0a2c0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22401ca9, 0x00000820, 0x0a2c0405 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c }, - { 0x00800201, 0x220003fd, 0x00000000, 0x3f000000 }, - { 0x00800201, 0x224003fd, 0x00000000, 0x3f000000 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000c000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001ca9, 0x00000820, 0x0a4c0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c01ca9, 0x00000820, 0x0a2c0001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g7b.haswell b/src/shaders/render/exa_wm_src_sample_planar.g7b.haswell deleted file mode 100644 index dc388c2..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g7b.haswell +++ /dev/null @@ -1,20 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x000000c0, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x000000c0 }, - { 0x01000010, 0x20002d3c, 0x000000c0, 0x00020002 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x00000070 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001ca9, 0x00000820, 0x0a2c0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22401ca9, 0x00000820, 0x0a2c0405 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000060 }, - { 0x00800201, 0x220003fd, 0x00000000, 0x3f000000 }, - { 0x00800201, 0x224003fd, 0x00000000, 0x3f000000 }, - { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000c000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22001ca9, 0x00000820, 0x0a4c0203 }, - { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 }, - { 0x00600201, 0x28200021, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c01ca9, 0x00000820, 0x0a2c0001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g8a b/src/shaders/render/exa_wm_src_sample_planar.g8a deleted file mode 100644 index 7684491..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g8a +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - * Zhao Yakui <yakui.zhao@intel.com> - */ - -/* Sample the src surface in planar format */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen8', `g65') -define(`src_msg_ind_gen8',`65') -/* UV flag */ -define(`uv_flag', `g6.0<0,1,0>UW') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ -cmp.e.f0.0 (1) null uv_flag 0x1UW {align1}; -(f0.0) jmpi INTERLEAVED_UV; - -cmp.e.f0.0 (1) null uv_flag 0x2UW {align1}; -(f0.0) jmpi CONSTANT_UV; - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* emit sampler 'send' cmd */ - -/* sample U (Cr) */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -/* sample V (Cb) */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_b<1>UW /* readback */ - null - sampler (5,4,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -jmpi SAMPLE_Y; - -CONSTANT_UV: -mov (16) src_sample_g<1>f 0.5f { compr align1 mask_disable }; -mov (16) src_sample_b<1>f 0.5f { compr align1 mask_disable }; - -jmpi SAMPLE_Y; - -INTERLEAVED_UV: -mov (1) g0.8<1>UD 0x0000c000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample UV (CrCb) */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 4 { align1 }; /* required message len 5, readback len 8 */ - - -SAMPLE_Y: -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample Y */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_r<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - diff --git a/src/shaders/render/exa_wm_src_sample_planar.g8b b/src/shaders/render/exa_wm_src_sample_planar.g8b deleted file mode 100644 index f29cfe4..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g8b +++ /dev/null @@ -1,20 +0,0 @@ - { 0x01000010, 0x200012e0, 0x160000c0, 0x00010001 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x000000c0 }, - { 0x01000010, 0x200012e0, 0x160000c0, 0x00020002 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x00000070 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22000a48, 0x0e000820, 0x0a2c0203 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22400a48, 0x0e000820, 0x0a2c0405 }, - { 0x00000020, 0x34000000, 0x0e001400, 0x00000060 }, - { 0x00800001, 0x22003eec, 0x38000000, 0x3f000000 }, - { 0x00800001, 0x22403eec, 0x38000000, 0x3f000000 }, - { 0x00000020, 0x34000000, 0x0e001400, 0x00000030 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000c000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22000a48, 0x0e000820, 0x0a4c0203 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c00a48, 0x0e000820, 0x0a2c0001 }, diff --git a/src/shaders/render/exa_wm_src_sample_planar.g9a b/src/shaders/render/exa_wm_src_sample_planar.g9a deleted file mode 100644 index f5369ca..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g9a +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - * Zhao Yakui <yakui.zhao@intel.com> - */ - -/* Sample the src surface in planar format */ - -include(`exa_wm.g4i') - -/* Ivybridge uses GRFs in SEND instruction */ -define(`src_msg_gen8', `g65') -define(`src_msg_ind_gen8',`65') -/* UV flag */ -define(`uv_flag', `g6.0<0,1,0>UW') - -/* prepare sampler read back gX register, which would be written back to output */ - -/* use simd16 sampler, param 0 is u, param 1 is v. */ -/* 'payload' loading, assuming tex coord start from g4 */ -cmp.e.f0.0 (1) null uv_flag 0x1UW {align1}; -(f0.0) jmpi INTERLEAVED_UV; - -cmp.e.f0.0 (1) null uv_flag 0x2UW {align1}; -(f0.0) jmpi CONSTANT_UV; - -/* load r */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* emit sampler 'send' cmd */ - -/* sample U (Cr) */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -/* sample V (Cb) */ -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_b<1>UW /* readback */ - null - sampler (5,4,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ - -jmpi SAMPLE_Y; - -CONSTANT_UV: -mov (16) src_sample_g<1>f 0.5f { compr align1 mask_disable }; -mov (16) src_sample_b<1>f 0.5f { compr align1 mask_disable }; - -jmpi SAMPLE_Y; - -INTERLEAVED_UV: -mov (1) g0.8<1>UD 0x0000c000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample UV (CrCb) */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_g<1>UW /* readback */ - null - sampler (3,2,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 4 { align1 }; /* required message len 5, readback len 8 */ - - -SAMPLE_Y: -mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable }; -mov (8) src_msg_gen8<1>UD g0<8,8,1>UD { align1 mask_disable }; - -/* sample Y */ -send (16) src_msg_ind_gen8 /* msg reg index */ - src_sample_r<1>UW /* readback */ - null - sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype) - /* here(src->dst) we should use src_sampler and src_surface */ - mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */ diff --git a/src/shaders/render/exa_wm_src_sample_planar.g9b b/src/shaders/render/exa_wm_src_sample_planar.g9b deleted file mode 100644 index 45e28b0..0000000 --- a/src/shaders/render/exa_wm_src_sample_planar.g9b +++ /dev/null @@ -1,20 +0,0 @@ - { 0x01000010, 0x200012e0, 0x160000c0, 0x00010001 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x000000c0 }, - { 0x01000010, 0x200012e0, 0x160000c0, 0x00020002 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x00000070 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22000a48, 0x06000820, 0x0a2c0203 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22400a48, 0x06000820, 0x0a2c0405 }, - { 0x00000020, 0x34000000, 0x0e001400, 0x00000060 }, - { 0x00800001, 0x22003eec, 0x38000000, 0x3f000000 }, - { 0x00800001, 0x22403eec, 0x38000000, 0x3f000000 }, - { 0x00000020, 0x34000000, 0x0e001400, 0x00000030 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000c000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x22000a48, 0x06000820, 0x0a4c0203 }, - { 0x00000001, 0x2008060c, 0x00000000, 0x0000e000 }, - { 0x00600001, 0x2820020c, 0x008d0000, 0x00000000 }, - { 0x02800031, 0x21c00a48, 0x06000820, 0x0a2c0001 }, diff --git a/src/shaders/render/exa_wm_write.g4a b/src/shaders/render/exa_wm_write.g4a deleted file mode 100644 index 2cb3d89..0000000 --- a/src/shaders/render/exa_wm_write.g4a +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -include(`exa_wm.g4i') - -/* - * Prepare data in m2-m5 for subspan(1,0), m6-m9 for subspan(3,2), - * - * Note that the SIMD16 write message takes data for the first - * two sub-spans followed by the data for the second two sub-spans - * instead of having the two sub-spans interleaved by channel. Weird. - */ - -mov (8) data_port_r_01<1>F g14<8,8,1>F { align1 }; -mov (8) data_port_g_01<1>F g16<8,8,1>F { align1 }; -mov (8) data_port_b_01<1>F g18<8,8,1>F { align1 }; -mov (8) data_port_a_01<1>F src_sample_a_01<8,8,1>F { align1 }; - -mov (8) data_port_r_23<1>F src_sample_r_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_g_23<1>F src_sample_g_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_b_23<1>F src_sample_b_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_a_23<1>F src_sample_a_23<8,8,1>F { sechalf align1 }; - - -mov (8) data_port_r_01<1>F src_sample_r_01<8,8,1>F { align1 }; -mov (8) data_port_g_01<1>F src_sample_g_01<8,8,1>F { align1 }; -mov (8) data_port_b_01<1>F src_sample_b_01<8,8,1>F { align1 }; -mov (8) data_port_a_01<1>F src_sample_a_01<8,8,1>F { align1 }; - -mov (8) data_port_r_23<1>F src_sample_r_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_g_23<1>F src_sample_g_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_b_23<1>F src_sample_b_23<8,8,1>F { sechalf align1 }; -mov (8) data_port_a_23<1>F src_sample_a_23<8,8,1>F { sechalf align1 }; - -/* m0, m1 are all direct passed by PS thread payload */ -mov (8) data_port_msg_1<1>UD g1<8,8,1>UD { mask_disable align1 }; - -/* write */ -send (16) - data_port_msg_0_ind - acc0<1>UW - g0<8,8,1>UW - write ( - 0, /* binding_table */ - 8, /* pixel scordboard clear, msg type simd16 single source */ - 4, /* render target write */ - 0 /* no write commit message */ - ) - mlen 10 - rlen 0 - { align1 EOT }; - -nop; -nop; -nop; -nop; -nop; -nop; -nop; -nop; - diff --git a/src/shaders/render/exa_wm_write.g4b b/src/shaders/render/exa_wm_write.g4b deleted file mode 100644 index b7dcd16..0000000 --- a/src/shaders/render/exa_wm_write.g4b +++ /dev/null @@ -1,26 +0,0 @@ - { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 }, - { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 }, - { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 }, - { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 }, - { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 }, - { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 }, - { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 }, - { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 }, - { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 }, - { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 }, - { 0x00600201, 0x20200022, 0x008d0020, 0x00000000 }, - { 0x00800031, 0x24001d28, 0x008d0000, 0x85a04800 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_write.g4b.gen5 b/src/shaders/render/exa_wm_write.g4b.gen5 deleted file mode 100644 index 14c1dae..0000000 --- a/src/shaders/render/exa_wm_write.g4b.gen5 +++ /dev/null @@ -1,26 +0,0 @@ - { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 }, - { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 }, - { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 }, - { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 }, - { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 }, - { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 }, - { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 }, - { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 }, - { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 }, - { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 }, - { 0x00600201, 0x20200022, 0x008d0020, 0x00000000 }, - { 0x00800031, 0x24001d28, 0x548d0000, 0x94084800 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_write.g6a b/src/shaders/render/exa_wm_write.g6a deleted file mode 100644 index c0f3cc1..0000000 --- a/src/shaders/render/exa_wm_write.g6a +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright © 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -include(`exa_wm.g4i') - -/* - * Prepare data in m2-m3 for Red channel, m4-m5 for Green channel, - * m6-m7 for Blue and m8-m9 for Alpha channel - */ -define(`slot_r_00', `m2') -define(`slot_r_01', `m3') -define(`slot_g_00', `m4') -define(`slot_g_01', `m5') -define(`slot_b_00', `m6') -define(`slot_b_01', `m7') -define(`slot_a_00', `m8') -define(`slot_a_01', `m9') -define(`data_port_msg_2_ind', `2') - -mov (8) slot_r_00<1>F src_sample_r_01<8,8,1>F { align1 }; -mov (8) slot_r_01<1>F src_sample_r_23<8,8,1>F { align1 }; - -mov (8) slot_g_00<1>F src_sample_g_01<8,8,1>F { align1 }; -mov (8) slot_g_01<1>F src_sample_g_23<8,8,1>F { align1 }; - -mov (8) slot_b_00<1>F src_sample_b_01<8,8,1>F { align1 }; -mov (8) slot_b_01<1>F src_sample_b_23<8,8,1>F { align1 }; - -mov (8) slot_a_00<1>F src_sample_a_01<8,8,1>F { align1 }; -mov (8) slot_a_01<1>F src_sample_a_23<8,8,1>F { align1 }; - -/* write */ -send (16) - data_port_msg_2_ind - acc0<1>UW - null - write ( - 0, /* binding_table */ - 16, /* pixel scordboard clear, msg type simd16 single source */ - 12, /* render target write */ - 0, /* no write commit message */ - 0 /* headerless render target write */ - ) - mlen 8 - rlen 0 - { align1 EOT }; - -nop; -nop; -nop; -nop; -nop; -nop; -nop; -nop; - diff --git a/src/shaders/render/exa_wm_write.g6b b/src/shaders/render/exa_wm_write.g6b deleted file mode 100644 index 3cb6bff..0000000 --- a/src/shaders/render/exa_wm_write.g6b +++ /dev/null @@ -1,17 +0,0 @@ - { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x206003be, 0x008d01e0, 0x00000000 }, - { 0x00600001, 0x208003be, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x20a003be, 0x008d0220, 0x00000000 }, - { 0x00600001, 0x20c003be, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x20e003be, 0x008d0260, 0x00000000 }, - { 0x00600001, 0x210003be, 0x008d0280, 0x00000000 }, - { 0x00600001, 0x212003be, 0x008d02a0, 0x00000000 }, - { 0x05800031, 0x24001cc8, 0x00000040, 0x90019000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_write.g7a b/src/shaders/render/exa_wm_write.g7a deleted file mode 100644 index f2eb0ea..0000000 --- a/src/shaders/render/exa_wm_write.g7a +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright © 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -include(`exa_wm.g4i') -include(`exa_wm_write.g7i') diff --git a/src/shaders/render/exa_wm_write.g7b b/src/shaders/render/exa_wm_write.g7b deleted file mode 100644 index b0a1d07..0000000 --- a/src/shaders/render/exa_wm_write.g7b +++ /dev/null @@ -1,19 +0,0 @@ - { 0x00600201, 0x2e000021, 0x008d0000, 0x00000000 }, - { 0x00600201, 0x2e200021, 0x008d0020, 0x00000000 }, - { 0x00600201, 0x2e4003bd, 0x008d01c0, 0x00000000 }, - { 0x00600201, 0x2e6003bd, 0x008d01e0, 0x00000000 }, - { 0x00600201, 0x2e8003bd, 0x008d0200, 0x00000000 }, - { 0x00600201, 0x2ea003bd, 0x008d0220, 0x00000000 }, - { 0x00600201, 0x2ec003bd, 0x008d0240, 0x00000000 }, - { 0x00600201, 0x2ee003bd, 0x008d0260, 0x00000000 }, - { 0x00600201, 0x2f0003bd, 0x008d0280, 0x00000000 }, - { 0x00600201, 0x2f2003bd, 0x008d02a0, 0x00000000 }, - { 0x05800031, 0x20001ca8, 0x00000e00, 0x940b1000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_write.g7i b/src/shaders/render/exa_wm_write.g7i deleted file mode 100644 index 3fbb432..0000000 --- a/src/shaders/render/exa_wm_write.g7i +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright © 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -/* header */ -define(`data_port_msg_2_0', `g112') -define(`data_port_msg_2_1', `g113') -define(`data_port_msg_2_ind', `112') - -mov (8) data_port_msg_2_0<1>UD g0<8,8,1>UD {align1 mask_disable}; -mov (8) data_port_msg_2_1<1>UD g1<8,8,1>UD {align1 mask_disable}; - -/* - * Prepare data in g114-g115 for Red channel, g116-g117 for Green channel, - * g118-g119 for Blue and g120-g121 for Alpha channel - */ -define(`slot_r_00', `g114') -define(`slot_r_01', `g115') -define(`slot_g_00', `g116') -define(`slot_g_01', `g117') -define(`slot_b_00', `g118') -define(`slot_b_01', `g119') -define(`slot_a_00', `g120') -define(`slot_a_01', `g121') - -mov (8) slot_r_00<1>F src_sample_r_01<8,8,1>F { align1 mask_disable }; -mov (8) slot_r_01<1>F src_sample_r_23<8,8,1>F { align1 mask_disable }; - -mov (8) slot_g_00<1>F src_sample_g_01<8,8,1>F { align1 mask_disable }; -mov (8) slot_g_01<1>F src_sample_g_23<8,8,1>F { align1 mask_disable }; - -mov (8) slot_b_00<1>F src_sample_b_01<8,8,1>F { align1 mask_disable }; -mov (8) slot_b_01<1>F src_sample_b_23<8,8,1>F { align1 mask_disable }; - -mov (8) slot_a_00<1>F src_sample_a_01<8,8,1>F { align1 mask_disable }; -mov (8) slot_a_01<1>F src_sample_a_23<8,8,1>F { align1 mask_disable }; - -send (16) - data_port_msg_2_ind - null<1>UW - null - write ( - 0, /* binding table index */ - 16, /* last render target(1) + slots 15:0(0) + msg type simd16 single source(000) */ - 12, /* render target write */ - 0, /* ignore for Ivybridge */ - 1 /* header present */ - ) - mlen 10 - rlen 0 - { align1 EOT }; - -nop; -nop; -nop; -nop; -nop; -nop; -nop; -nop; diff --git a/src/shaders/render/exa_wm_write.g8a b/src/shaders/render/exa_wm_write.g8a deleted file mode 100644 index 6c386af..0000000 --- a/src/shaders/render/exa_wm_write.g8a +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -include(`exa_wm.g4i') -include(`exa_wm_write.g7i') diff --git a/src/shaders/render/exa_wm_write.g8b b/src/shaders/render/exa_wm_write.g8b deleted file mode 100644 index a320f46..0000000 --- a/src/shaders/render/exa_wm_write.g8b +++ /dev/null @@ -1,19 +0,0 @@ - { 0x00600001, 0x2e00020c, 0x008d0000, 0x00000000 }, - { 0x00600001, 0x2e20020c, 0x008d0020, 0x00000000 }, - { 0x00600001, 0x2e403aec, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x2e603aec, 0x008d01e0, 0x00000000 }, - { 0x00600001, 0x2e803aec, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x2ea03aec, 0x008d0220, 0x00000000 }, - { 0x00600001, 0x2ec03aec, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x2ee03aec, 0x008d0260, 0x00000000 }, - { 0x00600001, 0x2f003aec, 0x008d0280, 0x00000000 }, - { 0x00600001, 0x2f203aec, 0x008d02a0, 0x00000000 }, - { 0x05800031, 0x20000a40, 0x0e000e00, 0x940b1000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_write.g9a b/src/shaders/render/exa_wm_write.g9a deleted file mode 100644 index d735efd..0000000 --- a/src/shaders/render/exa_wm_write.g9a +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright © 2014 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - */ - -include(`exa_wm.g4i') -include(`exa_wm_write.g7i') diff --git a/src/shaders/render/exa_wm_write.g9b b/src/shaders/render/exa_wm_write.g9b deleted file mode 100644 index e625b9d..0000000 --- a/src/shaders/render/exa_wm_write.g9b +++ /dev/null @@ -1,19 +0,0 @@ - { 0x00600001, 0x2e00020c, 0x008d0000, 0x00000000 }, - { 0x00600001, 0x2e20020c, 0x008d0020, 0x00000000 }, - { 0x00600001, 0x2e403aec, 0x008d01c0, 0x00000000 }, - { 0x00600001, 0x2e603aec, 0x008d01e0, 0x00000000 }, - { 0x00600001, 0x2e803aec, 0x008d0200, 0x00000000 }, - { 0x00600001, 0x2ea03aec, 0x008d0220, 0x00000000 }, - { 0x00600001, 0x2ec03aec, 0x008d0240, 0x00000000 }, - { 0x00600001, 0x2ee03aec, 0x008d0260, 0x00000000 }, - { 0x00600001, 0x2f003aec, 0x008d0280, 0x00000000 }, - { 0x00600001, 0x2f203aec, 0x008d02a0, 0x00000000 }, - { 0x05800031, 0x20000a40, 0x06000e00, 0x940b1000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, - { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 }, diff --git a/src/shaders/render/exa_wm_xy.g4a b/src/shaders/render/exa_wm_xy.g4a deleted file mode 100644 index e99f5ac..0000000 --- a/src/shaders/render/exa_wm_xy.g4a +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright © 2006 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Wang Zhenyu <zhenyu.z.wang@intel.com> - * Keith Packard <keithp@keithp.com> - */ - -/* - * Register assignments: - * - * x g6/g7 - * y g8/g9 - * - * temp x g10/g11 - * temp y g12/g13 - * - * src w g14/g15 - * src u m1/m2 - * src v m3/m4 - */ - -/* Fragment to compute per-pixel XY values */ - -include(`exa_wm.g4i') - - /* Load X and Y coordinates and compute per-pixel coordinates */ -add (16) temp_x_uw<1>UW dst_x_uw 0x10101010V { align1 }; -add (16) temp_y_uw<1>UW dst_y_uw 0x11001100V { align1 }; - - /* subtract screen-space origin of vertex 0 */ -add (16) dst_x<1>F temp_x_uw<8,8,1>UW -screen_x0 { compr align1 }; -add (16) dst_y<1>F temp_y_uw<8,8,1>UW -screen_y0 { compr align1 }; diff --git a/src/shaders/render/exa_wm_xy.g4b b/src/shaders/render/exa_wm_xy.g4b deleted file mode 100644 index 2b3b235..0000000 --- a/src/shaders/render/exa_wm_xy.g4b +++ /dev/null @@ -1,4 +0,0 @@ - { 0x00800040, 0x23c06d29, 0x00480028, 0x10101010 }, - { 0x00800040, 0x23806d29, 0x0048002a, 0x11001100 }, - { 0x00802040, 0x2540753d, 0x008d03c0, 0x00004020 }, - { 0x00802040, 0x2580753d, 0x008d0380, 0x00004024 }, diff --git a/src/shaders/render/exa_wm_xy.g4b.gen5 b/src/shaders/render/exa_wm_xy.g4b.gen5 deleted file mode 100644 index 2b3b235..0000000 --- a/src/shaders/render/exa_wm_xy.g4b.gen5 +++ /dev/null @@ -1,4 +0,0 @@ - { 0x00800040, 0x23c06d29, 0x00480028, 0x10101010 }, - { 0x00800040, 0x23806d29, 0x0048002a, 0x11001100 }, - { 0x00802040, 0x2540753d, 0x008d03c0, 0x00004020 }, - { 0x00802040, 0x2580753d, 0x008d0380, 0x00004024 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g4a b/src/shaders/render/exa_wm_yuv_color_balance.g4a deleted file mode 100644 index 33ba67a..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g4a +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * - */ - -include(`exa_wm.g4i') - -/* Color Balance parameters */ -define(`skip_color_balance', `g2.2<0,1,0>uw') -define(`contrast', `g2.16<0,1,0>f') -define(`brightness', `g2.20<0,1,0>f') -define(`cos_c_s', `g2.24<0,1,0>f') -define(`sin_c_s', `g2.28<0,1,0>f') -define(`sin_c_s_t', `g2.28') - -include(`exa_wm_yuv_color_balance.gxa') diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g4b b/src/shaders/render/exa_wm_yuv_color_balance.g4b deleted file mode 100644 index cba9aca..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g4b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x00000042, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000000d }, - { 0x00802040, 0x24007fbd, 0x008d01c0, 0xbd808081 }, - { 0x00802041, 0x240077bd, 0x008d0400, 0x00000050 }, - { 0x00802040, 0x240077bd, 0x008d0400, 0x00000054 }, - { 0x00802040, 0x21c07fbd, 0x008d0400, 0x3d808081 }, - { 0x00802040, 0x24807fbd, 0x008d0200, 0xbf008084 }, - { 0x00802040, 0x24407fbd, 0x008d0240, 0xbf008084 }, - { 0x00802001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00802048, 0x240077bc, 0x008d0440, 0x0000005c }, - { 0x00802048, 0x220077bd, 0x008d0480, 0x00000058 }, - { 0x00000041, 0x205c7fbd, 0x0000005c, 0xbf800000 }, - { 0x00802001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00802048, 0x240077bc, 0x008d0480, 0x0000005c }, - { 0x00802048, 0x224077bd, 0x008d0440, 0x00000058 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g4b.gen5 b/src/shaders/render/exa_wm_yuv_color_balance.g4b.gen5 deleted file mode 100644 index 5a24a0e..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g4b.gen5 +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x00000042, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000001a }, - { 0x00802040, 0x24007fbd, 0x008d01c0, 0xbd808081 }, - { 0x00802041, 0x240077bd, 0x008d0400, 0x00000050 }, - { 0x00802040, 0x240077bd, 0x008d0400, 0x00000054 }, - { 0x00802040, 0x21c07fbd, 0x008d0400, 0x3d808081 }, - { 0x00802040, 0x24807fbd, 0x008d0200, 0xbf008084 }, - { 0x00802040, 0x24407fbd, 0x008d0240, 0xbf008084 }, - { 0x00802001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00802048, 0x240077bc, 0x008d0440, 0x0000005c }, - { 0x00802048, 0x220077bd, 0x008d0480, 0x00000058 }, - { 0x00000041, 0x205c7fbd, 0x0000005c, 0xbf800000 }, - { 0x00802001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00802048, 0x240077bc, 0x008d0480, 0x0000005c }, - { 0x00802048, 0x224077bd, 0x008d0440, 0x00000058 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g6a b/src/shaders/render/exa_wm_yuv_color_balance.g6a deleted file mode 100644 index 6906357..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g6a +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * - */ - -include(`exa_wm.g4i') - -/* Color Balance parameters */ -define(`skip_color_balance', `g6.2<0,1,0>uw') -define(`contrast', `g6.16<0,1,0>f') -define(`brightness', `g6.20<0,1,0>f') -define(`cos_c_s', `g6.24<0,1,0>f') -define(`sin_c_s', `g6.28<0,1,0>f') -define(`sin_c_s_t', `g6.28') - -include(`exa_wm_yuv_color_balance.gxa') diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g6b b/src/shaders/render/exa_wm_yuv_color_balance.g6b deleted file mode 100644 index 0a9e6b9..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g6b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x000000c2, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000001a }, - { 0x00800040, 0x24007fbd, 0x008d01c0, 0xbd808081 }, - { 0x00800041, 0x240077bd, 0x008d0400, 0x000000d0 }, - { 0x00800040, 0x240077bd, 0x008d0400, 0x000000d4 }, - { 0x00800040, 0x21c07fbd, 0x008d0400, 0x3d808081 }, - { 0x00800040, 0x24807fbd, 0x008d0200, 0xbf008084 }, - { 0x00800040, 0x24407fbd, 0x008d0240, 0xbf008084 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0440, 0x000000dc }, - { 0x00800048, 0x220077bd, 0x008d0480, 0x000000d8 }, - { 0x00000041, 0x20dc7fbd, 0x000000dc, 0xbf800000 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0480, 0x000000dc }, - { 0x00800048, 0x224077bd, 0x008d0440, 0x000000d8 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g7a b/src/shaders/render/exa_wm_yuv_color_balance.g7a deleted file mode 100644 index 6906357..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g7a +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * - */ - -include(`exa_wm.g4i') - -/* Color Balance parameters */ -define(`skip_color_balance', `g6.2<0,1,0>uw') -define(`contrast', `g6.16<0,1,0>f') -define(`brightness', `g6.20<0,1,0>f') -define(`cos_c_s', `g6.24<0,1,0>f') -define(`sin_c_s', `g6.28<0,1,0>f') -define(`sin_c_s_t', `g6.28') - -include(`exa_wm_yuv_color_balance.gxa') diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g7b b/src/shaders/render/exa_wm_yuv_color_balance.g7b deleted file mode 100644 index 0a9e6b9..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g7b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x000000c2, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x0000001a }, - { 0x00800040, 0x24007fbd, 0x008d01c0, 0xbd808081 }, - { 0x00800041, 0x240077bd, 0x008d0400, 0x000000d0 }, - { 0x00800040, 0x240077bd, 0x008d0400, 0x000000d4 }, - { 0x00800040, 0x21c07fbd, 0x008d0400, 0x3d808081 }, - { 0x00800040, 0x24807fbd, 0x008d0200, 0xbf008084 }, - { 0x00800040, 0x24407fbd, 0x008d0240, 0xbf008084 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0440, 0x000000dc }, - { 0x00800048, 0x220077bd, 0x008d0480, 0x000000d8 }, - { 0x00000041, 0x20dc7fbd, 0x000000dc, 0xbf800000 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0480, 0x000000dc }, - { 0x00800048, 0x224077bd, 0x008d0440, 0x000000d8 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g7b.haswell b/src/shaders/render/exa_wm_yuv_color_balance.g7b.haswell deleted file mode 100644 index 2780c08..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g7b.haswell +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x20002d3c, 0x000000c2, 0x00010001 }, - { 0x00010020, 0x34001c00, 0x00001400, 0x000000d0 }, - { 0x00800040, 0x24007fbd, 0x008d01c0, 0xbd808081 }, - { 0x00800041, 0x240077bd, 0x008d0400, 0x000000d0 }, - { 0x00800040, 0x240077bd, 0x008d0400, 0x000000d4 }, - { 0x00800040, 0x21c07fbd, 0x008d0400, 0x3d808081 }, - { 0x00800040, 0x24807fbd, 0x008d0200, 0xbf008084 }, - { 0x00800040, 0x24407fbd, 0x008d0240, 0xbf008084 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0440, 0x000000dc }, - { 0x00800048, 0x220077bd, 0x008d0480, 0x000000d8 }, - { 0x00000041, 0x20dc7fbd, 0x000000dc, 0xbf800000 }, - { 0x00800001, 0x240003fc, 0x00000000, 0x3f008084 }, - { 0x00800048, 0x240077bc, 0x008d0480, 0x000000dc }, - { 0x00800048, 0x224077bd, 0x008d0440, 0x000000d8 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g8a b/src/shaders/render/exa_wm_yuv_color_balance.g8a deleted file mode 100644 index f3cc28f..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g8a +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * Zhao Yakui <yakui.zhao@intel.com> - * - */ - -include(`exa_wm.g4i') - -/* Color Balance parameters */ -define(`skip_color_balance', `g6.2<0,1,0>uw') -define(`contrast', `g6.16<0,1,0>f') -define(`brightness', `g6.20<0,1,0>f') -define(`cos_c_s', `g6.24<0,1,0>f') -define(`sin_c_s', `g6.28<0,1,0>f') -define(`sin_c_s_t', `g6.28') - -include(`exa_wm_yuv_color_balance.gxa') diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g8b b/src/shaders/render/exa_wm_yuv_color_balance.g8b deleted file mode 100644 index 5dc2c8b..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g8b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x200012e0, 0x160000c2, 0x00010001 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x000000d0 }, - { 0x00800040, 0x24003ae8, 0x3e8d01c0, 0xbd808081 }, - { 0x00800041, 0x24003ae8, 0x3a8d0400, 0x000000d0 }, - { 0x00800040, 0x24003ae8, 0x3a8d0400, 0x000000d4 }, - { 0x00800040, 0x21c03ae8, 0x3e8d0400, 0x3d808081 }, - { 0x00800040, 0x24803ae8, 0x3e8d0200, 0xbf008084 }, - { 0x00800040, 0x24403ae8, 0x3e8d0240, 0xbf008084 }, - { 0x00800001, 0x24003ee0, 0x38000000, 0x3f008084 }, - { 0x00800048, 0x24003ae0, 0x3a8d0440, 0x000000dc }, - { 0x00800048, 0x22003ae8, 0x3a8d0480, 0x000000d8 }, - { 0x00000041, 0x20dc3ae8, 0x3e0000dc, 0xbf800000 }, - { 0x00800001, 0x24003ee0, 0x38000000, 0x3f008084 }, - { 0x00800048, 0x24003ae0, 0x3a8d0480, 0x000000dc }, - { 0x00800048, 0x22403ae8, 0x3a8d0440, 0x000000d8 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g9a b/src/shaders/render/exa_wm_yuv_color_balance.g9a deleted file mode 100644 index 511e3f3..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g9a +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright © 2014 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * Zhao Yakui <yakui.zhao@intel.com> - * - */ - -include(`exa_wm.g4i') - -/* Color Balance parameters */ -define(`skip_color_balance', `g6.2<0,1,0>uw') -define(`contrast', `g6.16<0,1,0>f') -define(`brightness', `g6.20<0,1,0>f') -define(`cos_c_s', `g6.24<0,1,0>f') -define(`sin_c_s', `g6.28<0,1,0>f') -define(`sin_c_s_t', `g6.28') - -include(`exa_wm_yuv_color_balance.gxa') diff --git a/src/shaders/render/exa_wm_yuv_color_balance.g9b b/src/shaders/render/exa_wm_yuv_color_balance.g9b deleted file mode 100644 index 5dc2c8b..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.g9b +++ /dev/null @@ -1,15 +0,0 @@ - { 0x01000010, 0x200012e0, 0x160000c2, 0x00010001 }, - { 0x00010020, 0x34000000, 0x0e001400, 0x000000d0 }, - { 0x00800040, 0x24003ae8, 0x3e8d01c0, 0xbd808081 }, - { 0x00800041, 0x24003ae8, 0x3a8d0400, 0x000000d0 }, - { 0x00800040, 0x24003ae8, 0x3a8d0400, 0x000000d4 }, - { 0x00800040, 0x21c03ae8, 0x3e8d0400, 0x3d808081 }, - { 0x00800040, 0x24803ae8, 0x3e8d0200, 0xbf008084 }, - { 0x00800040, 0x24403ae8, 0x3e8d0240, 0xbf008084 }, - { 0x00800001, 0x24003ee0, 0x38000000, 0x3f008084 }, - { 0x00800048, 0x24003ae0, 0x3a8d0440, 0x000000dc }, - { 0x00800048, 0x22003ae8, 0x3a8d0480, 0x000000d8 }, - { 0x00000041, 0x20dc3ae8, 0x3e0000dc, 0xbf800000 }, - { 0x00800001, 0x24003ee0, 0x38000000, 0x3f008084 }, - { 0x00800048, 0x24003ae0, 0x3a8d0480, 0x000000dc }, - { 0x00800048, 0x22403ae8, 0x3a8d0440, 0x000000d8 }, diff --git a/src/shaders/render/exa_wm_yuv_color_balance.gxa b/src/shaders/render/exa_wm_yuv_color_balance.gxa deleted file mode 100644 index 948067c..0000000 --- a/src/shaders/render/exa_wm_yuv_color_balance.gxa +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Haihao Xiang <haihao.xiang@intel.com> - * - */ - -define(`Cr', `src_sample_b') -define(`Cr_01', `src_sample_b_01') -define(`Cr_23', `src_sample_b_23') - -define(`Y', `src_sample_r') -define(`Y_01', `src_sample_r_01') -define(`Y_23', `src_sample_r_23') - -define(`Cb', `src_sample_g') -define(`Cb_01', `src_sample_g_01') -define(`Cb_23', `src_sample_g_23') - -define(`Crn', `color_balance_g') -define(`Crn_01', `color_balance_g_01') -define(`Crn_23', `color_balance_g_23') - -define(`Yn', `color_balance_r') -define(`Yn_01', `color_balance_r_01') -define(`Yn_23', `color_balance_r_23') - -define(`Cbn', `color_balance_b') -define(`Cbn_01', `color_balance_b_01') -define(`Cbn_23', `color_balance_b_23') - -cmp.e.f0.0 (1) null skip_color_balance 0x1uw {align1}; -(f0.0) jmpi _DONE_COLOR_BALANCE; - -/* Yout = (Yin - 16 / 255) * contrast + brightness + 16 / 255 */ -add (16) Yn<1>F Y<8,8,1>F -0.0627451F { compr align1 }; -mul (16) Yn<1>F Yn<8,8,1>F contrast { compr align1 }; -add (16) Yn<1>F Yn<8,8,1>F brightness { compr align1 }; -add (16) Y<1>F Yn<8,8,1>F 0.0627451F { compr align1 }; - -/* Uout = (Uin - 128 / 255) * cos_c_s + (Vin - 128 / 255) * sin_c_s + 128 / 255 */ -/* Vout = (Vin - 128 / 255) * cos_c_s - (Uin - 128 / 255) * sin_c_s + 128 / 255 */ -add (16) Cbn<1>F Cb<8,8,1>F -0.501961F { compr align1 }; -add (16) Crn<1>F Cr<8,8,1>F -0.501961F { compr align1 }; - -mov (16) acc0<1>F 0.501961F { compr align1 }; -mac (16) acc0<1>F Crn<8,8,1>F sin_c_s { compr align1 }; -mac (16) Cb<1>F Cbn<8,8,1>F cos_c_s { compr align1 }; - -mul (1) sin_c_s_t<1>F sin_c_s -1.0F { align1}; -mov (16) acc0<1>F 0.501961F { compr align1 }; -mac (16) acc0<1>F Cbn<8,8,1>F sin_c_s { compr align1 }; -mac (16) Cr<1>F Crn<8,8,1>F cos_c_s { compr align1 }; - -_DONE_COLOR_BALANCE: diff --git a/src/shaders/render/exa_wm_yuv_rgb.g4a b/src/shaders/render/exa_wm_yuv_rgb.g4a deleted file mode 100644 index e3d2464..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g4a +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2006-2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * - */ - -include(`exa_wm.g4i') -include(`exa_yuv_gen4.g4i') -include(`exa_yuv_rgb.gxa') - diff --git a/src/shaders/render/exa_wm_yuv_rgb.g4b b/src/shaders/render/exa_wm_yuv_rgb.g4b deleted file mode 100644 index b116ece..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g4b +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00802040, 0x22c077bd, 0x008d01c0, 0x0000006c }, - { 0x00802040, 0x230077bd, 0x008d0200, 0x0000007c }, - { 0x00802040, 0x234077bd, 0x008d0240, 0x0000008c }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000060 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000064 }, - { 0x80802048, 0x21c077bd, 0x008d0340, 0x00000068 }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000070 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000074 }, - { 0x80802048, 0x220077bd, 0x008d0340, 0x00000078 }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000080 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000084 }, - { 0x80802048, 0x224077bd, 0x008d0340, 0x00000088 }, - { 0x00802001, 0x228003fd, 0x00000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_wm_yuv_rgb.g4b.gen5 b/src/shaders/render/exa_wm_yuv_rgb.g4b.gen5 deleted file mode 100644 index b116ece..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g4b.gen5 +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00802040, 0x22c077bd, 0x008d01c0, 0x0000006c }, - { 0x00802040, 0x230077bd, 0x008d0200, 0x0000007c }, - { 0x00802040, 0x234077bd, 0x008d0240, 0x0000008c }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000060 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000064 }, - { 0x80802048, 0x21c077bd, 0x008d0340, 0x00000068 }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000070 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000074 }, - { 0x80802048, 0x220077bd, 0x008d0340, 0x00000078 }, - { 0x00802041, 0x240077bc, 0x008d02c0, 0x00000080 }, - { 0x00802048, 0x240077bc, 0x008d0300, 0x00000084 }, - { 0x80802048, 0x224077bd, 0x008d0340, 0x00000088 }, - { 0x00802001, 0x228003fd, 0x00000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_wm_yuv_rgb.g6a b/src/shaders/render/exa_wm_yuv_rgb.g6a deleted file mode 100644 index ede0298..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g6a +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright © 2006-2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * - */ - -include(`exa_wm.g4i') -include(`exa_yuv_gen6.g4i') -include(`exa_yuv_rgb.gxa') diff --git a/src/shaders/render/exa_wm_yuv_rgb.g6b b/src/shaders/render/exa_wm_yuv_rgb.g6b deleted file mode 100644 index d09ae00..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g6b +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00800040, 0x22c077bd, 0x008d01c0, 0x000000ec }, - { 0x00800040, 0x230077bd, 0x008d0200, 0x000000fc }, - { 0x00800040, 0x234077bd, 0x008d0240, 0x0000010c }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x000000e0 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x000000e4 }, - { 0x80800048, 0x21c077bd, 0x008d0340, 0x000000e8 }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x000000f0 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x000000f4 }, - { 0x80800048, 0x220077bd, 0x008d0340, 0x000000f8 }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x00000100 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x00000104 }, - { 0x80800048, 0x224077bd, 0x008d0340, 0x00000108 }, - { 0x00800001, 0x228003fd, 0x00000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_wm_yuv_rgb.g7a b/src/shaders/render/exa_wm_yuv_rgb.g7a deleted file mode 100644 index ede0298..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g7a +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright © 2006-2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * - */ - -include(`exa_wm.g4i') -include(`exa_yuv_gen6.g4i') -include(`exa_yuv_rgb.gxa') diff --git a/src/shaders/render/exa_wm_yuv_rgb.g7b b/src/shaders/render/exa_wm_yuv_rgb.g7b deleted file mode 100644 index d09ae00..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g7b +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00800040, 0x22c077bd, 0x008d01c0, 0x000000ec }, - { 0x00800040, 0x230077bd, 0x008d0200, 0x000000fc }, - { 0x00800040, 0x234077bd, 0x008d0240, 0x0000010c }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x000000e0 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x000000e4 }, - { 0x80800048, 0x21c077bd, 0x008d0340, 0x000000e8 }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x000000f0 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x000000f4 }, - { 0x80800048, 0x220077bd, 0x008d0340, 0x000000f8 }, - { 0x00800041, 0x240077bc, 0x008d02c0, 0x00000100 }, - { 0x00800048, 0x240077bc, 0x008d0300, 0x00000104 }, - { 0x80800048, 0x224077bd, 0x008d0340, 0x00000108 }, - { 0x00800001, 0x228003fd, 0x00000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_wm_yuv_rgb.g8a b/src/shaders/render/exa_wm_yuv_rgb.g8a deleted file mode 100644 index 9da53c8..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g8a +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * Zhao Yakui <yakui.zhao@intel.com> - * - */ - -include(`exa_wm.g4i') -include(`exa_yuv_gen6.g4i') -include(`exa_yuv_rgb.gxa') diff --git a/src/shaders/render/exa_wm_yuv_rgb.g8b b/src/shaders/render/exa_wm_yuv_rgb.g8b deleted file mode 100644 index 6b6b4d1..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g8b +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00800040, 0x22c03ae8, 0x3a8d01c0, 0x000000ec }, - { 0x00800040, 0x23003ae8, 0x3a8d0200, 0x000000fc }, - { 0x00800040, 0x23403ae8, 0x3a8d0240, 0x0000010c }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x000000e0 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x000000e4 }, - { 0x80800048, 0x21c03ae8, 0x3a8d0340, 0x000000e8 }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x000000f0 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x000000f4 }, - { 0x80800048, 0x22003ae8, 0x3a8d0340, 0x000000f8 }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x00000100 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x00000104 }, - { 0x80800048, 0x22403ae8, 0x3a8d0340, 0x00000108 }, - { 0x00800001, 0x22803ee8, 0x38000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_wm_yuv_rgb.g9a b/src/shaders/render/exa_wm_yuv_rgb.g9a deleted file mode 100644 index e5f82c6..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g9a +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2014 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Keith Packard <keithp@keithp.com> - * Eric Anholt <eric@anholt.net> - * Zhao Yakui <yakui.zhao@intel.com> - * - */ - -include(`exa_wm.g4i') -include(`exa_yuv_gen6.g4i') -include(`exa_yuv_rgb.gxa') diff --git a/src/shaders/render/exa_wm_yuv_rgb.g9b b/src/shaders/render/exa_wm_yuv_rgb.g9b deleted file mode 100644 index 6b6b4d1..0000000 --- a/src/shaders/render/exa_wm_yuv_rgb.g9b +++ /dev/null @@ -1,13 +0,0 @@ - { 0x00800040, 0x22c03ae8, 0x3a8d01c0, 0x000000ec }, - { 0x00800040, 0x23003ae8, 0x3a8d0200, 0x000000fc }, - { 0x00800040, 0x23403ae8, 0x3a8d0240, 0x0000010c }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x000000e0 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x000000e4 }, - { 0x80800048, 0x21c03ae8, 0x3a8d0340, 0x000000e8 }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x000000f0 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x000000f4 }, - { 0x80800048, 0x22003ae8, 0x3a8d0340, 0x000000f8 }, - { 0x00800041, 0x24003ae0, 0x3a8d02c0, 0x00000100 }, - { 0x00800048, 0x24003ae0, 0x3a8d0300, 0x00000104 }, - { 0x80800048, 0x22403ae8, 0x3a8d0340, 0x00000108 }, - { 0x00800001, 0x22803ee8, 0x38000000, 0x3f800000 }, diff --git a/src/shaders/render/exa_yuv_gen4.g4i b/src/shaders/render/exa_yuv_gen4.g4i deleted file mode 100644 index 5a66616..0000000 --- a/src/shaders/render/exa_yuv_gen4.g4i +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Zhao Yakui <yakui.zhao@intel.com> - */ - -/* YUV to RGB matrix coeff */ - -define(`coef_ry', `g3.0<0,1,0>F') -define(`coef_ru', `g3.4<0,1,0>F') -define(`coef_rv', `g3.8<0,1,0>F') -define(`coef_yd', `g3.12<0,1,0>F') - -define(`coef_gy', `g3.16<0,1,0>F') -define(`coef_gu', `g3.20<0,1,0>F') -define(`coef_gv', `g3.24<0,1,0>F') -define(`coef_ud', `g3.28<0,1,0>F') - -define(`coef_by', `g4.0<0,1,0>F') -define(`coef_bu', `g4.4<0,1,0>F') -define(`coef_bv', `g4.8<0,1,0>F') -define(`coef_vd', `g4.12<0,1,0>F') diff --git a/src/shaders/render/exa_yuv_gen6.g4i b/src/shaders/render/exa_yuv_gen6.g4i deleted file mode 100644 index a8d69ee..0000000 --- a/src/shaders/render/exa_yuv_gen6.g4i +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Zhao Yakui <yakui.zhao@intel.com> - */ -/* YUV to RGB matrix coeff */ - - -define(`coef_ry', `g7.0<0,1,0>F') -define(`coef_ru', `g7.4<0,1,0>F') -define(`coef_rv', `g7.8<0,1,0>F') -define(`coef_yd', `g7.12<0,1,0>F') - -define(`coef_gy', `g7.16<0,1,0>F') -define(`coef_gu', `g7.20<0,1,0>F') -define(`coef_gv', `g7.24<0,1,0>F') -define(`coef_ud', `g7.28<0,1,0>F') - -define(`coef_by', `g8.0<0,1,0>F') -define(`coef_bu', `g8.4<0,1,0>F') -define(`coef_bv', `g8.8<0,1,0>F') -define(`coef_vd', `g8.12<0,1,0>F') diff --git a/src/shaders/render/exa_yuv_rgb.gxa b/src/shaders/render/exa_yuv_rgb.gxa deleted file mode 100644 index 656ae73..0000000 --- a/src/shaders/render/exa_yuv_rgb.gxa +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright © 2013 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Zhao Yakui <yakui.zhao@intel.com> - */ - -define(`YCbCr_base', `src_sample_base') - -define(`Cr', `src_sample_b') -define(`Cr_01', `src_sample_b_01') -define(`Cr_23', `src_sample_b_23') - -define(`Y', `src_sample_r') -define(`Y_01', `src_sample_r_01') -define(`Y_23', `src_sample_r_23') - -define(`Cb', `src_sample_g') -define(`Cb_01', `src_sample_g_01') -define(`Cb_23', `src_sample_g_23') - -define(`Crn', `mask_sample_b') -define(`Crn_01', `mask_sample_b_01') -define(`Crn_23', `mask_sample_b_23') - -define(`Yn', `mask_sample_r') -define(`Yn_01', `mask_sample_r_01') -define(`Yn_23', `mask_sample_r_23') - -define(`Cbn', `mask_sample_g') -define(`Cbn_01', `mask_sample_g_01') -define(`Cbn_23', `mask_sample_g_23') - -add (16) Yn<1>F Y<8,8,1>F coef_yd { compr align1 }; - -add (16) Cbn<1>F Cb<8,8,1>F coef_ud { compr align1 }; - -add (16) Crn<1>F Cr<8,8,1>F coef_vd { compr align1 }; - -mul (16) acc0<1>F Yn<8,8,1>F coef_ry { compr align1 }; -mac (16) acc0<1>F Cbn<8,8,1>F coef_ru { compr align1 }; -mac.sat (16) src_sample_r<1>F Crn<8,8,1>F coef_rv { compr align1 }; - -mul (16) acc0<1>F Yn<8,8,1>F coef_gy { compr align1 }; -mac (16) acc0<1>F Cbn<8,8,1>F coef_gu { compr align1 }; -mac.sat(16) src_sample_g<1>F Crn<8,8,1>F coef_gv { compr align1 }; - -mul (16) acc0<1>F Yn<8,8,1>F coef_by { compr align1 }; -mac (16) acc0<1>F Cbn<8,8,1>F coef_bu { compr align1 }; -mac.sat(16) src_sample_b<1>F Crn<8,8,1>F coef_bv { compr align1 }; - - /* - * A = 1.0 - */ -mov (16) src_sample_a<1>F 1.0F { compr align1 }; |