[PATCH] radeon: Allow N x 1 x 1 surfaces for evergreen+

2012-09-22 Thread Marek Olšák
I think it would be cleaner to add a new SURF_TYPE for buffers and only allow large npix_x for that (and adding all the necessary sanity checks to disallow invalid values). Also, if you want to use it in Mesa, you or somebody else should: 1) make a libdrm release 2) bump libdrm_radeon version

[PATCH] radeon: Allow N x 1 x 1 surfaces for evergreen+

2012-09-21 Thread Tom Stellard
From: Tom Stellard This makes it possible to create a surface for a buffer. --- radeon/radeon_surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 80b1505..235f4ae 100644 ---

[PATCH] radeon: Allow N x 1 x 1 surfaces for evergreen+

2012-09-21 Thread Tom Stellard
From: Tom Stellard thomas.stell...@amd.com This makes it possible to create a surface for a buffer. --- radeon/radeon_surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index 80b1505..235f4ae 100644 ---

Re: [PATCH] radeon: Allow N x 1 x 1 surfaces for evergreen+

2012-09-21 Thread Marek Olšák
I think it would be cleaner to add a new SURF_TYPE for buffers and only allow large npix_x for that (and adding all the necessary sanity checks to disallow invalid values). Also, if you want to use it in Mesa, you or somebody else should: 1) make a libdrm release 2) bump libdrm_radeon version