Skip to contentSkip to conversation

radeon: fix tile_split of 128-bit surface formats with 8x MSAA

PATCH In review Marek Olšák 3 participants 5 messages Oct 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 radeon: fix tile_split of 128-bit surface formats with 8x MSAA

The calculation led to the number 8192, which is too high.

---
 radeon/radeon_surface.c |    2 ++
 1 file changed, 2 insertions(+)
radeon/radeon_surface.c +2 -0
index 66c2444..eb587d2 100644
@@ -939,6 +939,8 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
         } else {
             /* tile split must be >= 256 for colorbuffer surfaces */
             surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            if (surf->tile_split > 4096)
+                surf->tile_split = 4096;
         }
     } else {
         /* set tile split to row size */
Signature · 1 line
1.7.9.5
#1 lore raw

Dear Marek,

Am Dienstag, den 16.10.2012, 02:21 +0200 schrieb Marek Olšák:

Quoted 1 line

The calculation led to the number 8192, which is too high.

what is the reason it is limited to 4096? Hardware limitation?

What are the ramifications? GPU hangs, rendering errors?

Quoted 9 lines
---
 radeon/radeon_surface.c |    2 ++
 1 file changed, 2 insertions(+)
radeon/radeon_surface.c +0 -0
index 66c2444..eb587d2 100644

radeon/radeon_surface.c static int eg_surface_best(struct radeon_surface_manager *surf_man, · line 946

Quoted 8 lines
radeon/radeon_surface.c +2 -0
@@ -939,6 +939,8 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
         } else {
             /* tile split must be >= 256 for colorbuffer surfaces */
             surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            if (surf->tile_split > 4096)
+                surf->tile_split = 4096;
         }
     } else {
         /* set tile split to row size */

Thanks,

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 7 lines · Paul Menzel

Dear Marek,

Am Dienstag, den 16.10.2012, 02:21 +0200 schrieb Marek Olšák:

Quoted 1 line

The calculation led to the number 8192, which is too high.

what is the reason it is limited to 4096? Hardware limitation?

hw limit.

Quoted 2 lines

What are the ramifications? GPU hangs, rendering errors?

Rendering errors.

Alex

Quoted 22 lines
Quoted 10 lines
---
 radeon/radeon_surface.c |    2 ++
 1 file changed, 2 insertions(+)
radeon/radeon_surface.c +0 -0
index 66c2444..eb587d2 100644

radeon/radeon_surface.c static int eg_surface_best(struct radeon_surface_manager *surf_man, · line 946

Quoted 8 lines
radeon/radeon_surface.c +2 -0
@@ -939,6 +939,8 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
         } else {
             /* tile split must be >= 256 for colorbuffer surfaces */
             surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            if (surf->tile_split > 4096)
+                surf->tile_split = 4096;
         }
     } else {
         /* set tile split to row size */

Thanks,

Quoted 7 lines

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Paul Menzel

In this specific case, the eg_surface_sanity function (or something like that, I don't remember its name) returns an error. Then the cascade of perfectly working fail codepaths propagate the error to the OpenGL user as an unsupported framebuffer object setup.

Marek

Quoted 31 lines · Paul Menzel

Dear Marek,

Am Dienstag, den 16.10.2012, 02:21 +0200 schrieb Marek Olšák:

Quoted 1 line

The calculation led to the number 8192, which is too high.

what is the reason it is limited to 4096? Hardware limitation?

What are the ramifications? GPU hangs, rendering errors?

Quoted 9 lines
---
 radeon/radeon_surface.c |    2 ++
 1 file changed, 2 insertions(+)
radeon/radeon_surface.c +0 -0
index 66c2444..eb587d2 100644

radeon/radeon_surface.c static int eg_surface_best(struct radeon_surface_manager *surf_man, · line 946

Quoted 8 lines
radeon/radeon_surface.c +2 -0
@@ -939,6 +939,8 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
         } else {
             /* tile split must be >= 256 for colorbuffer surfaces */
             surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            if (surf->tile_split > 4096)
+                surf->tile_split = 4096;
         }
     } else {
         /* set tile split to row size */

Thanks,

Quoted 1 line

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#4 lore raw
In reply to Marek Olšák
Quoted 1 line · Marek Olšák

The calculation led to the number 8192, which is too high.

Looks good.

Quoted 20 lines
---
 radeon/radeon_surface.c |    2 ++
 1 file changed, 2 insertions(+)
radeon/radeon_surface.c +2 -1
index 66c2444..eb587d2 100644
@@ -939,6 +939,8 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
         } else {
             /* tile split must be >= 256 for colorbuffer surfaces */
             surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            if (surf->tile_split > 4096)
+                surf->tile_split = 4096;
         }
     } else {
         /* set tile split to row size */
--

1.7.9.5

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel