freedreno: fix samples=0 vs samples=1 confusion
authorRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 13:44:23 +0000 (09:44 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 17 Jul 2018 15:00:00 +0000 (11:00 -0400)
commit15f6c0509a8b6928a94023e095e08419cf1fe589
tree38607a86868f72225bfd1b827ad090baaa5e98e3
parentd77fcdeb5904ac1324d9445f775fdf5c6af95b84
freedreno: fix samples=0 vs samples=1 confusion

pipe_framebuffer_state can have samples=0 in various cases, which is
actually the same thing as samples=1.  So use the _get_num_samples()
helper to populate the key, to avoid this looking like two distinct
fb states to the cache.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_batch_cache.c