[Intel-gfx] [PATCH i-g-t 1/2] tools/intel_reg: Set register stride to 1 for VGA registers

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Wed Sep 9 12:56:33 PDT 2015


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

VGA registers are generally 8 bits long, so set the stride to 1 byte.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_reg_spec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/intel_reg_spec.c b/tools/intel_reg_spec.c
index 6b7e30c..b49e0dc 100644
--- a/tools/intel_reg_spec.c
+++ b/tools/intel_reg_spec.c
@@ -41,12 +41,12 @@ static const struct port_desc port_descs[] = {
 	{
 		.name = "portio-vga",
 		.port = PORT_PORTIO_VGA,
-		.stride = 4,
+		.stride = 1,
 	},
 	{
 		.name = "mmio-vga",
 		.port = PORT_MMIO_VGA,
-		.stride = 4,
+		.stride = 1,
 	},
 	{
 		.name = "bunit",
-- 
2.4.6



More information about the Intel-gfx mailing list