mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
r600: make sure the active shader bo is re-added to persistent list.
This commit is contained in:
parent
5f7c532b1e
commit
a25d0dc9ec
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include "r700_state.h"
|
||||
#include "radeon_mipmap_tree.h"
|
||||
#include "r600_tex.h"
|
||||
#include "r700_fragprog.h"
|
||||
|
||||
void r600UpdateTextureState(GLcontext * ctx);
|
||||
|
||||
|
|
@ -647,6 +648,7 @@ GLboolean r600ValidateBuffers(GLcontext * ctx)
|
|||
{
|
||||
context_t *rmesa = R700_CONTEXT(ctx);
|
||||
struct radeon_renderbuffer *rrb;
|
||||
struct radeon_bo *pbo;
|
||||
int i;
|
||||
int ret;
|
||||
|
||||
|
|
@ -688,6 +690,12 @@ GLboolean r600ValidateBuffers(GLcontext * ctx)
|
|||
RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM, 0);
|
||||
}
|
||||
|
||||
pbo = (struct radeon_bo *)r700GetActiveFpShaderBo(ctx);
|
||||
if (pbo) {
|
||||
radeon_cs_space_add_persistent_bo(rmesa->radeon.cmdbuf.cs, pbo,
|
||||
RADEON_GEM_DOMAIN_GTT, 0);
|
||||
}
|
||||
|
||||
ret = radeon_cs_space_check_with_bo(rmesa->radeon.cmdbuf.cs, first_elem(&rmesa->radeon.dma.reserved)->bo, RADEON_GEM_DOMAIN_GTT, 0);
|
||||
if (ret)
|
||||
return GL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue