freedreno: enable a306
authorRob Clark <robclark@freedesktop.org>
Tue, 12 May 2015 18:46:50 +0000 (14:46 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 14 May 2015 18:46:14 +0000 (14:46 -0400)
Whitelist adreno 306 (as found in msm8916/apq8016).  Works pretty much
out of the box, although the smaller GMEM size requires more tiles to
fit 1920x1080, so bump up the max # of tiles as well.

Since it is just whitelist + trivial change, it makes sense to land on
all the active release branches.

Note that a305c ends up with gpu-id "306", hence a306 ends up with
gpu-id of "307".  Apparently that is what happens when you let the
marketing dept name things.

Cc: "10.4" and "10.5" and "10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_screen.c

index 2c816b4b1f649371299826a021b873df0f88580a..e420f1e5bd98ec6e220da8ba756d67c4fc970384 100644 (file)
@@ -297,7 +297,7 @@ struct fd_context {
         */
        struct fd_gmem_stateobj gmem;
        struct fd_vsc_pipe      pipe[8];
-       struct fd_tile          tile[64];
+       struct fd_tile          tile[256];
 
        /* which state objects need to be re-emit'd: */
        enum {
index f81ec80e04575c2351f359cd12c108c90308181a..c596d03b08417b06903a39067756ae6ebf6d52ed 100644 (file)
@@ -520,6 +520,7 @@ fd_screen_create(struct fd_device *dev)
        case 220:
                fd2_screen_init(pscreen);
                break;
+       case 307:
        case 320:
        case 330:
                fd3_screen_init(pscreen);