All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mesa v2 1/3] nouveau: codegen: LOAD: Always use component 0 when getting the address
@ 2016-04-21 12:39 Hans de Goede
  2016-04-21 12:39 ` [PATCH mesa v2 2/3] nouveau: codegen: LOAD: Do not call fetchSrc(1) if the address is immediate Hans de Goede
       [not found] ` <1461242362-1281-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Hans de Goede @ 2016-04-21 12:39 UTC (permalink / raw)
  To: Ilia Mirkin, Samuel Pitoiset
  Cc: mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

LOAD loads upto 4 components from the specified resource starting at
the passed in x value of the 2nd source operand, the y, z and w
components of the address should not be used.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
-New patch in v2 of this patch-set
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 557608e..d3c2d61 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -2277,7 +2277,7 @@ Converter::handleLOAD(Value *dst0[4])
          if (!dst0[c])
             continue;
 
-         Value *off = fetchSrc(1, c);
+         Value *off = fetchSrc(1, 0);
          Symbol *sym;
          if (tgsi.getSrc(1).getFile() == TGSI_FILE_IMMEDIATE) {
             off = NULL;
-- 
2.7.3

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

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

end of thread, other threads:[~2016-04-22  8:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 12:39 [PATCH mesa v2 1/3] nouveau: codegen: LOAD: Always use component 0 when getting the address Hans de Goede
2016-04-21 12:39 ` [PATCH mesa v2 2/3] nouveau: codegen: LOAD: Do not call fetchSrc(1) if the address is immediate Hans de Goede
     [not found] ` <1461242362-1281-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-21 12:39   ` [PATCH mesa v2 3/3] nouveau: codegen: LOAD: Take src swizzle into account Hans de Goede
2016-04-21 17:04     ` Ilia Mirkin
2016-04-22  7:08       ` Marek Olšák
2016-04-22  7:23         ` Hans de Goede
     [not found]           ` <5719D17F.3050503-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-04-22  8:37             ` Marek Olšák
     [not found]               ` <CAAxE2A5xGaAagKfFJ4rALa2rHVJ_UV3eNjXLJKwzKEp7A36ATw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-22  8:44                 ` Hans de Goede

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.