All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] exa/nv10: use same clip settings as mesa driver
@ 2014-08-10  6:25 Ilia Mirkin
       [not found] ` <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ilia Mirkin @ 2014-08-10  6:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

The higher 0x800 was getting overwritten by the 0x7ff anyways, so it
wasn't doing any good. The mesa driver just uses 0x800 for the low
portion and doesn't set the 8 bit in the higher portion, so do the same
thing here.

Signed-off-by: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
---
 src/nv10_exa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index cb9eb7c..df2f561 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -686,9 +686,9 @@ NVAccelInitNV10TCL(ScrnInfoPtr pScrn)
 	PUSH_DATA (push, 0);
 
 	BEGIN_NV04(push, NV10_3D(VIEWPORT_CLIP_HORIZ(0)), 1);
-	PUSH_DATA (push, 0x7ff << 16 | 0x800800);
+	PUSH_DATA (push, 0x7ff << 16 | 0x800);
 	BEGIN_NV04(push, NV10_3D(VIEWPORT_CLIP_VERT(0)), 1);
-	PUSH_DATA (push, 0x7ff << 16 | 0x800800);
+	PUSH_DATA (push, 0x7ff << 16 | 0x800);
 
 	for (i = 1; i < 8; i++) {
 		BEGIN_NV04(push, NV10_3D(VIEWPORT_CLIP_HORIZ(i)), 1);
-- 
1.8.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/4] exa/nv10: use color 0 when the pict format has no RGB component
       [not found] ` <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
@ 2014-08-10  6:25   ` Ilia Mirkin
  2014-08-10  6:25   ` [PATCH 3/4] exa/nv10: fix blend function setup to check the correct mask Ilia Mirkin
  2014-08-10  6:25   ` [PATCH 4/4] exa/nv10: src ops should use the SF macro Ilia Mirkin
  2 siblings, 0 replies; 4+ messages in thread
From: Ilia Mirkin @ 2014-08-10  6:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Signed-off-by: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
---
 src/nv10_exa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index df2f561..47cf0ef 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -520,7 +520,7 @@ setup_picture(NVPtr pNv, PicturePtr pict, PixmapPtr pixmap, int unit,
 	if (pict && PICT_FORMAT_RGB(pict->format))
 		*color = RCSEL_COLOR | source;
 	else
-		*color = RCSEL_ALPHA | RCINP_ZERO;
+		*color = RCSEL_COLOR | RCINP_ZERO;
 
 	if (pict && PICT_FORMAT_A(pict->format))
 		*alpha = RCSEL_ALPHA | source;
-- 
1.8.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/4] exa/nv10: fix blend function setup to check the correct mask
       [not found] ` <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
  2014-08-10  6:25   ` [PATCH 2/4] exa/nv10: use color 0 when the pict format has no RGB component Ilia Mirkin
@ 2014-08-10  6:25   ` Ilia Mirkin
  2014-08-10  6:25   ` [PATCH 4/4] exa/nv10: src ops should use the SF macro Ilia Mirkin
  2 siblings, 0 replies; 4+ messages in thread
From: Ilia Mirkin @ 2014-08-10  6:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Signed-off-by: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
---
 src/nv10_exa.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index 47cf0ef..6b75a9e 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -461,7 +461,7 @@ setup_render_target(NVPtr pNv, PicturePtr pict, PixmapPtr pixmap)
 }
 
 static void
-setup_blend_function(NVPtr pNv, PicturePtr pdpict, int alu)
+setup_blend_function(NVPtr pNv, PicturePtr pdpict, PicturePtr pmpict, int alu)
 {
 	struct nouveau_pushbuf *push = pNv->pushbuf;
 	struct pict_op *op = &nv10_pict_op[alu];
@@ -476,7 +476,7 @@ setup_blend_function(NVPtr pNv, PicturePtr pdpict, int alu)
 		 */
 		src_factor = SF(ZERO);
 
-	if (effective_component_alpha(pNv->pmpict)) {
+	if (effective_component_alpha(pmpict)) {
 		if (dst_factor == DF(SRC_ALPHA))
 			dst_factor = DF(SRC_COLOR);
 		else if (dst_factor == DF(ONE_MINUS_SRC_ALPHA))
@@ -557,7 +557,7 @@ NV10EXAPrepareComposite(int op,
 	/* setup render target and blending */
 	if (!setup_render_target(pNv, pict_dst, dst))
 		return FALSE;
-	setup_blend_function(pNv, pict_dst, op);
+	setup_blend_function(pNv, pict_dst, pict_mask, op);
 
 	/* select picture sources */
 	if (!setup_picture(pNv, pict_src, src, 0, &sc, &sa))
-- 
1.8.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 4/4] exa/nv10: src ops should use the SF macro
       [not found] ` <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
  2014-08-10  6:25   ` [PATCH 2/4] exa/nv10: use color 0 when the pict format has no RGB component Ilia Mirkin
  2014-08-10  6:25   ` [PATCH 3/4] exa/nv10: fix blend function setup to check the correct mask Ilia Mirkin
@ 2014-08-10  6:25   ` Ilia Mirkin
  2 siblings, 0 replies; 4+ messages in thread
From: Ilia Mirkin @ 2014-08-10  6:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Doesn't actually end up mattering.

Signed-off-by: Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
---
 src/nv10_exa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index 6b75a9e..78bc739 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -132,7 +132,7 @@ needs_src_alpha(int op)
 static inline Bool
 needs_src(int op)
 {
-	return nv10_pict_op[op].src != DF(ZERO);
+	return nv10_pict_op[op].src != SF(ZERO);
 }
 
 static inline Bool
-- 
1.8.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-10  6:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-10  6:25 [PATCH 1/4] exa/nv10: use same clip settings as mesa driver Ilia Mirkin
     [not found] ` <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org>
2014-08-10  6:25   ` [PATCH 2/4] exa/nv10: use color 0 when the pict format has no RGB component Ilia Mirkin
2014-08-10  6:25   ` [PATCH 3/4] exa/nv10: fix blend function setup to check the correct mask Ilia Mirkin
2014-08-10  6:25   ` [PATCH 4/4] exa/nv10: src ops should use the SF macro Ilia Mirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.