OSDN Git Service

i965: fix fetching constants from constant buffer in glsl path
authorRoland Scheidegger <sroland@vmware.com>
Fri, 26 Jun 2009 18:38:07 +0000 (20:38 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 4 Jul 2009 13:35:07 +0000 (15:35 +0200)
commitfc6e02ce6210d6615af0058f1b57e7ee37a6527f
treec4a4fb3ecc2969e2f5e77ec4a8a2f9e5118d9927
parentc30f23c1231e8443e0880efa5326ccecf6eec034
i965: fix fetching constants from constant buffer in glsl path

the driver used to overwrite grf0 then use implicit move by send instruction
to move contents of grf0 to mrf1. However, we must not overwrite grf0 since
it's still used later for fb write.
Instead, do the move directly do mrf1 (we could use implicit move from another
grf reg to mrf1 but since we need a mov to encode the data anyway it doesn't
seem to make sense).
I think the dp_READ/WRITE_16 functions may suffer from the same issue.
While here also remove unnecessary msg_reg_nr parameter from the dataport
functions since always message register 1 is used.
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_wm_emit.c
src/mesa/drivers/dri/i965/brw_wm_glsl.c