Lines Matching refs:dw

6 static void brw_wm_xy(struct brw_compile *p, int dw)
14 if (dw == 16) {
37 static void brw_wm_affine_st(struct brw_compile *p, int dw,
42 if (dw == 16) {
57 msg += dw/8;
68 msg += dw/8;
75 static inline unsigned simd(int dw)
77 return dw == 16 ? BRW_SAMPLER_SIMD_MODE_SIMD16 : BRW_SAMPLER_SIMD_MODE_SIMD8;
80 static inline struct brw_reg sample_result(int dw, int result)
84 dw == 16 ? BRW_VERTICAL_STRIDE_16 : BRW_VERTICAL_STRIDE_8,
85 dw == 16 ? BRW_WIDTH_16 : BRW_WIDTH_8,
91 static int brw_wm_sample(struct brw_compile *p, int dw,
98 len = dw == 16 ? 4 : 2;
107 brw_SAMPLE(p, sample_result(dw, result), msg, src0,
109 2*len, len+header, header, simd(dw));
113 static int brw_wm_sample__alpha(struct brw_compile *p, int dw,
119 if (dw == 8) {
133 brw_SAMPLE(p, sample_result(dw, result), msg, src0,
135 rlen, mlen, true, simd(dw));
137 if (dw == 8)
143 static int brw_wm_affine(struct brw_compile *p, int dw,
146 brw_wm_affine_st(p, dw, channel, msg);
147 return brw_wm_sample(p, dw, channel, msg, result);
150 static int brw_wm_affine__alpha(struct brw_compile *p, int dw,
153 brw_wm_affine_st(p, dw, channel, msg);
154 return brw_wm_sample__alpha(p, dw, channel, msg, result);
157 static inline struct brw_reg null_result(int dw)
161 dw == 16 ? BRW_VERTICAL_STRIDE_16 : BRW_VERTICAL_STRIDE_8,
162 dw == 16 ? BRW_WIDTH_16 : BRW_WIDTH_8,
168 static void brw_fb_write(struct brw_compile *p, int dw)
175 if (dw == 16) {
211 brw_set_dest(p, insn, null_result(dw));
218 static void brw_wm_write(struct brw_compile *p, int dw, int src)
222 if (dw == 8 && p->gen >= 060) {
240 } else if (p->gen >= 045 && dw == 16) {
250 if (dw == 16) {
260 brw_fb_write(p, dw);
263 static void brw_wm_write__mask(struct brw_compile *p, int dw,
268 if (dw == 8 && p->gen >= 060) {
299 } else if (p->gen >= 045 && dw == 16) {
311 if (dw == 16) {
322 brw_fb_write(p, dw);
325 static void brw_wm_write__opacity(struct brw_compile *p, int dw,
330 if (dw == 8 && p->gen >= 060) {
361 } else if (p->gen >= 045 && dw == 16) {
373 if (dw == 16) {
384 brw_fb_write(p, dw);
387 static void brw_wm_write__mask_ca(struct brw_compile *p, int dw,
392 if (dw == 8 && p->gen >= 060) {
423 } else if (p->gen >= 045 && dw == 16) {
435 if (dw == 16) {
446 brw_fb_write(p, dw);
506 static void brw_wm_projective_st(struct brw_compile *p, int dw,
511 if (dw == 16) {
528 if (dw == 16) {
550 brw_message_reg(msg + dw/8),
560 if (dw == 16) {
572 msg += dw/8;
580 static int brw_wm_projective(struct brw_compile *p, int dw,
583 brw_wm_projective_st(p, dw, channel, msg);
584 return brw_wm_sample(p, dw, channel, msg, result);
587 static int brw_wm_projective__alpha(struct brw_compile *p, int dw,
590 brw_wm_projective_st(p, dw, channel, msg);
591 return brw_wm_sample__alpha(p, dw, channel, msg, result);